createReturnConstantHook

fun Method.createReturnConstantHook(value: Any?): XC_MethodHook.Unhook

让 Method 直接返回固定值。

Parameters

value

要直接返回给调用方的值