mirror of
https://github.com/HighCapable/YukiHookAPI.git
synced 2025-09-04 17:55:24 +08:00
694 B
694 B
ModuleContextThemeWrapper - class
class ModuleContextThemeWrapper private constructor(baseContext: Context, theme: Int, configuration: Configuration?) : ContextThemeWrapper
变更记录
v1.1.0
新增
功能描述
代理
ContextThemeWrapper
。
通过包装,你可以轻松在 (Xposed) 宿主环境使用来自模块的主题资源。
applyConfiguration - method
fun applyConfiguration(initiate: Configuration.() -> Unit): ModuleContextThemeWrapper
变更记录
v1.1.0
新增
功能描述
设置当前
ModuleContextThemeWrapper
的Configuration
。
设置后会自动调用 Resources.updateConfiguration
。