Notification Listener Service Utils
Description TODO
Author
M8Test, [email protected], https://m8test.com
Functions
Link copied to clipboard
fun addNotificationPostedListener(origin: Any, listener: (StatusBarNotification, NotificationListenerService.RankingMap?) -> Unit): Result
添加通知发送的监听器
Link copied to clipboard
fun addNotificationRemovedListener(origin: Any, listener: (StatusBarNotification, NotificationListenerService.RankingMap?, Int) -> Unit): Result
添加通知被移除的监听器
Link copied to clipboard
fun addStateChangeListener(origin: Any, onStateChangedListener: (<Error class: unknown class>?) -> Unit): Result
添加状态改变监听器.
Link copied to clipboard
获取 NotificationListenerService 对象
Link copied to clipboard
fun removeNotificationPostedListener(origin: Any, listener: (StatusBarNotification, NotificationListenerService.RankingMap?) -> Unit): Result
移除通知发送监听器
Link copied to clipboard
fun removeNotificationRemovedListener(origin: Any, listener: (StatusBarNotification, NotificationListenerService.RankingMap?, Int) -> Unit): Result
移除通知被移除的监听器
Link copied to clipboard
fun removeStateChangeListener(origin: Any, onStateChangedListener: (<Error class: unknown class>?) -> Unit): Result
移除状态改变监听器