Compartir a través de


NotificationManager.NotificationDelegate Propiedad

Definición

Devuelve que #setNotificationDelegate(String) delegate puede publicar notificaciones en su nombre, si actualmente hay una. -o bien- Permite que un paquete publique notificaciones en su nombre mediante #notifyAsPackage(String, String, int, Notification).

public virtual string? NotificationDelegate { [Android.Runtime.Register("getNotificationDelegate", "()Ljava/lang/String;", "GetGetNotificationDelegateHandler", ApiSince=29)] get; [Android.Runtime.Register("setNotificationDelegate", "(Ljava/lang/String;)V", "GetSetNotificationDelegate_Ljava_lang_String_Handler", ApiSince=29)] set; }
[<get: Android.Runtime.Register("getNotificationDelegate", "()Ljava/lang/String;", "GetGetNotificationDelegateHandler", ApiSince=29)>]
[<set: Android.Runtime.Register("setNotificationDelegate", "(Ljava/lang/String;)V", "GetSetNotificationDelegate_Ljava_lang_String_Handler", ApiSince=29)>]
member this.NotificationDelegate : string with get, set

Valor de propiedad

Atributos

Comentarios

Documentación del captador de propiedades:

Devuelve que #setNotificationDelegate(String) delegate puede publicar notificaciones en su nombre, si actualmente hay una.

Documentación de Java para android.app.NotificationManager.getNotificationDelegate().

Documentación del establecedor de propiedades:

Permite que un paquete publique notificaciones en su nombre mediante #notifyAsPackage(String, String, int, Notification).

Esto se puede usar para permitir que los procesos persistentes publiquen notificaciones en función de los mensajes recibidos en su nombre desde la nube, sin que el proceso tenga que reactivarse.

Puede comprobar si tiene un delegado permitido con #getNotificationDelegate() y revocarlo pasando null a este método.

Documentación de Java para android.app.NotificationManager.setNotificationDelegate(java.lang.String).

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

Se aplica a