MCPcopy Create free account
hub / github.com/cinit/TMoe / functionSwitch

Method functionSwitch

app/src/main/java/cc/ioctl/tmoe/ui/dsl/Category.kt:33–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31 }
32
33 open fun functionSwitch(
34 hook: DynamicHook,
35 titleKey: String,
36 titleResId: Int,
37 descKey: String? = null,
38 descResId: Int? = null,
39 descProvider: ((Context) -> String?)? = null,
40 onClick: View.OnClickListener? = null
41 ): FunctionSwitch = FunctionSwitch(
42 titleKey = titleKey,
43 titleResId = titleResId,
44 descKey = descKey,
45 descResId = descResId,
46 descProvider = descProvider,
47 onClick = onClick,
48 hook = hook
49 ).also {
50 checkState()
51 dslItems.add(it)
52 }
53
54 open fun description(
55 titleKey: String,

Callers

nothing calls this directly

Calls 2

FunctionSwitchClass · 0.85
addMethod · 0.45

Tested by

no test coverage detected