类 Refine
java.lang.Object
dev.rikka.tools.refine.Refine
Util class for using HiddenApiRefine plugin.
-
构造器概要
构造器 -
方法概要
-
构造器详细资料
-
Refine
public Refine()
-
-
方法详细资料
-
unsafeCast
Cast an object toRefine.A typical usage is cast a "Hidden" class to its real type.
For example,android.os.UserHandleis a public class, but some of its methods are hidden. Therefore, you can create aandroid.os.UserHandleHiddenclass annotated with@RefineAs(android.os.UserHandle.class)) to access them.
When you have an instance ofandroid.os.UserHandleand you need to access its hidden methods, at this time you can use this method to cast it toandroid.os.UserHandleHidden.- 类型参数:
T- Target type- 参数:
obj- Object- 返回:
- Object with target type
- 抛出:
ClassCastException- If HiddenApiRefine plugin is not correctly set or not working
-