NotificationManager.NotificationPolicy 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得目前使用者指定的預設通知政策。
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
屬性值
- 屬性
備註
取得目前使用者指定的預設通知政策。 針對Build.VERSION_CODES的應用程式。VANILLA_ICE_CREAM及以上(有些例外,例如伴隨裝置管理器),此方法會回傳與其隱含 AutomaticZenRule 相關的政策(若存在的話)。 請參見 setNotificationPolicy(Policy)。
Android 參考資料。android.app.NotificationManager.getNotificationPolicy
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。