patch
open fun patch(@NonNull forClass: String, @NonNull fn: String, @NonNull paramTypes: Array<Class<out Any>>, @NonNull hook: XC_MethodHook): Runnable
Patches a method.
Return
A Runnable object.
Parameters
for Class
Class to patch.
fn
Method to patch.
param Types
Parameters of the fn
. Useful for patching individual overloads.
hook
Callback for the patch.
open fun patch(@NonNull clazz: Class<out Any>, @NonNull fn: String, @NonNull paramTypes: Array<Class<out Any>>, @NonNull hook: XC_MethodHook): Runnable
Patches a method.
Return
Method that will remove the patch when invoked
Parameters
clazz
Class to patch.
fn
Method to patch.
param Types
Parameters of the fn
. Useful for patching individual overloads.
hook
Callback for the patch.
Patches a method or constructor.
Return
Method that will remove the patch when invoked
Parameters
m
Method or constructor to patch. see Member.
hook
Callback for the patch.
open fun patch(@NonNull m: Member, @NonNull callback: Action1<XC_MethodHook.MethodHookParam>): Runnable
Patches a method or constructor.
Return
Method that will remove the patch when invoked
Parameters
m
Method or constructor to patch. see Member.
callback
Callback for the patch.