mirror of
https://github.com/HighCapable/YukiHookAPI.git
synced 2025-09-05 18:25:28 +08:00
...
This commit is contained in:
@@ -62,6 +62,13 @@ fun YukiHookXposedInitProxy.encase(vararg hooker: YukiBaseHooker) = YukiHookAPI.
|
|||||||
*/
|
*/
|
||||||
val Context.modulePrefs get() = YukiHookModulePrefs(context = this)
|
val Context.modulePrefs get() = YukiHookModulePrefs(context = this)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取模块的存取对象
|
||||||
|
* @param name 自定义 Sp 存储名称
|
||||||
|
* @return [YukiHookModulePrefs]
|
||||||
|
*/
|
||||||
|
fun Context.modulePrefs(name: String) = YukiHookModulePrefs(context = this).name(name)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取当前进程名称
|
* 获取当前进程名称
|
||||||
* @return [String]
|
* @return [String]
|
||||||
@@ -82,7 +89,7 @@ val Context.processName
|
|||||||
* 判断模块是否在太极、无极中激活
|
* 判断模块是否在太极、无极中激活
|
||||||
* @return [Boolean] 是否激活
|
* @return [Boolean] 是否激活
|
||||||
*/
|
*/
|
||||||
val Context.isTaichiModuleActive: Boolean
|
val Context.isTaiChiModuleActive: Boolean
|
||||||
get() {
|
get() {
|
||||||
var isModuleActive = false
|
var isModuleActive = false
|
||||||
runCatching {
|
runCatching {
|
||||||
|
Reference in New Issue
Block a user