More docs
This commit is contained in:
parent
4be04fc3ce
commit
b6926a5fba
|
|
@ -164,52 +164,56 @@ public interface XposedInterface {
|
|||
int getFrameworkPrivilege();
|
||||
|
||||
/**
|
||||
* Hook method unhooker.
|
||||
* Hook a method with default priority.
|
||||
*
|
||||
* @param origin the origin
|
||||
* @param hooker the hooker
|
||||
* @return the method unhooker
|
||||
* @throws IllegalArgumentException if origin is abstract, framework internal or {@link Method#invoke}
|
||||
* @param origin The method to be hooked
|
||||
* @param hooker The hooker class
|
||||
* @return Unhooker for canceling the hook
|
||||
* @throws IllegalArgumentException if origin is abstract, framework internal or {@link Method#invoke},
|
||||
* or hooker is invalid
|
||||
* @throws HookFailedError if hook fails due to framework internal error
|
||||
*/
|
||||
@NonNull
|
||||
MethodUnhooker<Method> hook(@NonNull Method origin, @NonNull Class<? extends Hooker> hooker);
|
||||
|
||||
/**
|
||||
* Hook method unhooker.
|
||||
* Hook a method with specified priority.
|
||||
*
|
||||
* @param origin the origin
|
||||
* @param priority the priority
|
||||
* @param hooker the hooker
|
||||
* @return the method unhooker
|
||||
* @throws IllegalArgumentException if origin is abstract, framework internal or {@link Method#invoke}
|
||||
* @param origin The method to be hooked
|
||||
* @param priority The hook priority
|
||||
* @param hooker The hooker class
|
||||
* @return Unhooker for canceling the hook
|
||||
* @throws IllegalArgumentException if origin is abstract, framework internal or {@link Method#invoke},
|
||||
* or hooker is invalid
|
||||
* @throws HookFailedError if hook fails due to framework internal error
|
||||
*/
|
||||
@NonNull
|
||||
MethodUnhooker<Method> hook(@NonNull Method origin, int priority, @NonNull Class<? extends Hooker> hooker);
|
||||
|
||||
/**
|
||||
* Hook method unhooker.
|
||||
* Hook a constructor with default priority.
|
||||
*
|
||||
* @param <T> the type parameter
|
||||
* @param origin the origin
|
||||
* @param hooker the hooker
|
||||
* @return the method unhooker
|
||||
* @throws IllegalArgumentException if origin is abstract, framework internal or {@link Method#invoke}
|
||||
* @param <T> The type of the constructor
|
||||
* @param origin The constructor to be hooked
|
||||
* @param hooker The hooker class
|
||||
* @return Unhooker for canceling the hook
|
||||
* @throws IllegalArgumentException if origin is abstract, framework internal or {@link Method#invoke},
|
||||
* or hooker is invalid
|
||||
* @throws HookFailedError if hook fails due to framework internal error
|
||||
*/
|
||||
@NonNull
|
||||
<T> MethodUnhooker<Constructor<T>> hook(@NonNull Constructor<T> origin, @NonNull Class<? extends Hooker> hooker);
|
||||
|
||||
/**
|
||||
* Hook method unhooker.
|
||||
* Hook a constructor with specified priority.
|
||||
*
|
||||
* @param <T> the type parameter
|
||||
* @param origin the origin
|
||||
* @param priority the priority
|
||||
* @param hooker the hooker
|
||||
* @return the method unhooker
|
||||
* @throws IllegalArgumentException if origin is abstract, framework internal or {@link Method#invoke}
|
||||
* @param <T> The type of the constructor
|
||||
* @param origin The constructor to be hooked
|
||||
* @param priority The hook priority
|
||||
* @param hooker The hooker class
|
||||
* @return Unhooker for canceling the hook
|
||||
* @throws IllegalArgumentException if origin is abstract, framework internal or {@link Method#invoke},
|
||||
* or hooker is invalid
|
||||
* @throws HookFailedError if hook fails due to framework internal error
|
||||
*/
|
||||
@NonNull
|
||||
|
|
|
|||
Loading…
Reference in New Issue