NotificationListenerHolder

Holds the ComponentName of the host app's NotificationListenerService. The host app must call NotificationListenerHolder.set(componentName) with its own service class before using tools that need notification listener access.

Example: NotificationListenerHolder.set(ComponentName(context, MyListenerService::class.java))

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun clear()
Link copied to clipboard
fun set(name: ComponentName)