NotificationManager.IsNotificationListenerAccessGranted(ComponentName) Método

Definición

Comprueba si el usuario ha aprobado un determinado android.service.notification.NotificationListenerService.

[Android.Runtime.Register("isNotificationListenerAccessGranted", "(Landroid/content/ComponentName;)Z", "GetIsNotificationListenerAccessGranted_Landroid_content_ComponentName_Handler", ApiSince=27)]
public virtual bool IsNotificationListenerAccessGranted (Android.Content.ComponentName? listener);
[<Android.Runtime.Register("isNotificationListenerAccessGranted", "(Landroid/content/ComponentName;)Z", "GetIsNotificationListenerAccessGranted_Landroid_content_ComponentName_Handler", ApiSince=27)>]
abstract member IsNotificationListenerAccessGranted : Android.Content.ComponentName -> bool
override this.IsNotificationListenerAccessGranted : Android.Content.ComponentName -> bool

Parámetros

listener
ComponentName

Devoluciones

Atributos

Comentarios

Comprueba si el usuario ha aprobado un determinado android.service.notification.NotificationListenerService.

El servicio de escucha debe pertenecer a la aplicación que realiza la llamada.

Las aplicaciones pueden solicitar acceso al agente de escucha de notificaciones enviando al usuario a la actividad que coincida con la acción android.provider.Settings#ACTION_NOTIFICATION_LISTENER_SETTINGSde intención del sistema .

Documentación de Java para android.app.NotificationManager.isNotificationListenerAccessGranted(android.content.ComponentName).

Las partes de esta página son modificaciones basadas en el trabajo creado y compartido por el proyecto de código y se usan según los términos descritos en la creative Commons 2.5.

Se aplica a