| 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, |
nothing calls this directly
no test coverage detected