NotificationListenerService.OnListenerConnected 方法

定义

实现此方法,了解何时启用侦听器并连接到通知管理器。

[Android.Runtime.Register("onListenerConnected", "()V", "GetOnListenerConnectedHandler")]
public virtual void OnListenerConnected ();
[<Android.Runtime.Register("onListenerConnected", "()V", "GetOnListenerConnectedHandler")>]
abstract member OnListenerConnected : unit -> unit
override this.OnListenerConnected : unit -> unit
属性

注解

实现此方法,了解何时启用侦听器并连接到通知管理器。 你目前可以放心地打电话 #getActiveNotifications()

适用于 . 的 android.service.notification.NotificationListenerService.onListenerConnected()Java 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于