Notice
The English translation of this page has not been completed, you are welcome to contribute translations to us.
You can use the Chrome Translation Plugin to translate entire pages for reference.
- class
YukiResourcesclass YukiResources private constructor(private val baseInstance: XResources) : Resources
Change Records
v1.0.80
added
Function Illustrate
对接
XResources
的中间层实例。
- class
LayoutInflatedParamclass LayoutInflatedParam(private val baseParam: XC_LayoutInflated.LayoutInflatedParam)
Change Records
v1.0.80
added
Function Illustrate
装载 Hook APP 的目标布局 Resources 实现类。
- field
variantNameval variantName: String
Change Records
v1.0.80
added
Function Illustrate
获取当前被 Hook 的布局装载目录名称。
例如:layout
、layout-land
、layout-sw600dp
。
- field
currentViewval currentView: View
Change Records
v1.0.80
added
Function Illustrate
获取当前被 Hook 的布局实例。
- method
findViewByIdentifierinline fun <reified T : View> View.findViewByIdentifier(name: String): T?
inline fun <reified T : View> findViewByIdentifier(name: String): T?
Change Records
v1.0.80
added
Function Illustrate
使用 Identifier 查找 Hook APP 指定 Id 的
View
。
扩展方法可以使用 Identifier 查找 Hook APP 当前装载布局中指定 Id 的 View
。