public static final class

XC_MethodHook.MethodHookParam

extends XCallback.Param
java.lang.Object
   ↳ de.robv.android.xposed.callbacks.XCallback.Param
     ↳ de.robv.android.xposed.XC_MethodHook.MethodHookParam

Class Overview

Wraps information about the method call and allows to influence it.

Summary

Fields
public Object[] args Arguments to the method call.
public Member method The hooked method/constructor.
public Object thisObject The this reference for an instance method, or null for static methods.
Public Methods
Object getResult()
Returns the result of the method call.
Object getResultOrThrowable()
Returns the result of the method call, or throws the Throwable caused by it.
Throwable getThrowable()
Returns the Throwable thrown by the method, or null.
boolean hasThrowable()
Returns true if an exception was thrown by the method.
void setResult(Object result)
Modify the result of the method call.
void setThrowable(Throwable throwable)
Modify the exception thrown of the method call.
[Expand]
Inherited Methods
From class de.robv.android.xposed.callbacks.XCallback.Param
From class java.lang.Object

Fields

public Object[] args

Arguments to the method call.

public Member method

The hooked method/constructor.

public Object thisObject

The this reference for an instance method, or null for static methods.

Public Methods

public Object getResult ()

Returns the result of the method call.

public Object getResultOrThrowable ()

Returns the result of the method call, or throws the Throwable caused by it.

Throws
Throwable

public Throwable getThrowable ()

Returns the Throwable thrown by the method, or null.

public boolean hasThrowable ()

Returns true if an exception was thrown by the method.

public void setResult (Object result)

Modify the result of the method call.

If called from XC_MethodHook.beforeHookedMethod(XC_MethodHook.MethodHookParam), it prevents the call to the original method.

public void setThrowable (Throwable throwable)

Modify the exception thrown of the method call.

If called from XC_MethodHook.beforeHookedMethod(XC_MethodHook.MethodHookParam), it prevents the call to the original method.