public abstract class XCallback
extends java.lang.Object
This class only keeps a priority for ordering multiple callbacks. The actual (abstract) callback methods are added by subclasses.
Modifier and Type | Class and Description |
---|---|
static class |
XCallback.Param
Base class for Xposed callback parameters.
|
Modifier and Type | Field and Description |
---|---|
int |
priority
Callback priority, higher number means earlier execution.
|
static int |
PRIORITY_DEFAULT
The default priority, see
priority . |
static int |
PRIORITY_HIGHEST
Execute this callback early, see
priority . |
static int |
PRIORITY_LOWEST
Execute this callback late, see
priority . |
Constructor and Description |
---|
XCallback()
Deprecated.
This constructor can't be hidden for technical reasons. Nevertheless, don't use it!
|
XCallback(int priority) |
Modifier and Type | Method and Description |
---|---|
protected void |
call(XCallback.Param param) |
static void |
callAll(XCallback.Param param) |
public int priority
This is usually set to PRIORITY_DEFAULT
. However, in case a certain callback should
be executed earlier or later a value between PRIORITY_HIGHEST
and PRIORITY_LOWEST
can be set instead. The values are just for orientation though, Xposed doesn't enforce any
boundaries on the priority values.
public static final int PRIORITY_DEFAULT
priority
.public static final int PRIORITY_LOWEST
priority
.public static final int PRIORITY_HIGHEST
priority
.@Deprecated public XCallback()
public XCallback(int priority)
public static void callAll(XCallback.Param param)
protected void call(XCallback.Param param) throws java.lang.Throwable
java.lang.Throwable