NotificationManager.NotificationDelegate Propiedad
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
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.
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.