Share via


NotificationManager.NotificationPolicy Property

Definition

Gets the current user-specified default notification policy. -or- Sets the current notification policy.

public virtual Android.App.NotificationManager.Policy? NotificationPolicy { [Android.Runtime.Register("getNotificationPolicy", "()Landroid/app/NotificationManager$Policy;", "GetGetNotificationPolicyHandler", ApiSince=23)] get; [Android.Runtime.Register("setNotificationPolicy", "(Landroid/app/NotificationManager$Policy;)V", "GetSetNotificationPolicy_Landroid_app_NotificationManager_Policy_Handler", ApiSince=23)] set; }
[<get: Android.Runtime.Register("getNotificationPolicy", "()Landroid/app/NotificationManager$Policy;", "GetGetNotificationPolicyHandler", ApiSince=23)>]
[<set: Android.Runtime.Register("setNotificationPolicy", "(Landroid/app/NotificationManager$Policy;)V", "GetSetNotificationPolicy_Landroid_app_NotificationManager_Policy_Handler", ApiSince=23)>]
member this.NotificationPolicy : Android.App.NotificationManager.Policy with get, set

Property Value

Attributes

Remarks

Property getter documentation:

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

Property setter documentation:

Java documentation for android.app.NotificationManager.setNotificationPolicy(android.app.Policy).

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