NotificationManager.NotificationPolicy Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the current user-specified default 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
Gets the current user-specified default notification policy. For apps targeting Build.VERSION_CODES.VANILLA_ICE_CREAM and above (with some exceptions, such as companion device managers) this method will return the policy associated to their implicit AutomaticZenRule instead, if it exists. See setNotificationPolicy(Policy).
Android reference for android.app.NotificationManager.getNotificationPolicy.
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.