| java.lang.Object | |||
| ↳ | de.robv.android.xposed.callbacks.XCallback | ||
| ↳ | de.robv.android.xposed.XC_MethodHook | ||
| ↳ | de.robv.android.xposed.XC_MethodReplacement | ||
A special case of XC_MethodHook which completely replaces the original method.
|
[Expand]
Inherited Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
de.robv.android.xposed.callbacks.XCallback
| |||||||||||
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| DO_NOTHING | Predefined callback that skips the method without replacements. | ||||||||||
|
[Expand]
Inherited Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
de.robv.android.xposed.callbacks.XCallback
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new callback with default priority.
| |||||||||||
Creates a new callback with a specific priority.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Creates a callback which always returns a specific value.
| |||||||||||
Like
returnConstant(Object), but allows to specify a priority for the callback.
| |||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Shortcut for replacing a method completely.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
de.robv.android.xposed.XC_MethodHook
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
java.lang.Comparable
| |||||||||||
Predefined callback that skips the method without replacements.
Creates a new callback with default priority.
Creates a new callback with a specific priority.
| priority | See XCallback.priority.
|
|---|
Creates a callback which always returns a specific value.
| result | The value that should be returned to callers of the hooked method. |
|---|
Like returnConstant(Object), but allows to specify a priority for the callback.
| priority | See XCallback.priority. |
|---|---|
| result | The value that should be returned to callers of the hooked method. |
Shortcut for replacing a method completely. Whatever is returned/thrown here is taken instead of the result of the original method (which will not be called).
Note that implementations shouldn't call super(param), it's not necessary.
| param | Information about the method call. |
|---|
| Throwable | Anything that is thrown by the callback will be passed on to the original caller. |
|---|