Share via


NotificationManager.NotificationDelegate Property

Definition

Returns the #setNotificationDelegate(String) delegate that can post notifications on your behalf, if there currently is one. -or- Allows a package to post notifications on your behalf using #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

Property Value

Attributes

Remarks

Property getter documentation:

Returns the #setNotificationDelegate(String) delegate that can post notifications on your behalf, if there currently is one.

Java documentation for android.app.NotificationManager.getNotificationDelegate().

Property setter documentation:

Allows a package to post notifications on your behalf using #notifyAsPackage(String, String, int, Notification).

This can be used to allow persistent processes to post notifications based on messages received on your behalf from the cloud, without your process having to wake up.

You can check if you have an allowed delegate with #getNotificationDelegate() and revoke your delegate by passing null to this method.

Java documentation for android.app.NotificationManager.setNotificationDelegate(java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to