NotificationManager.CanPostPromotedNotifications 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳來電應用程式格式正確通知是否能以推廣格式出現,這可能帶來更高的排名、更多表面的曝光率及更豐富的呈現。
[Android.Runtime.Register("canPostPromotedNotifications", "()Z", "GetCanPostPromotedNotificationsHandler", ApiSince=36)]
public virtual bool CanPostPromotedNotifications();
[<Android.Runtime.Register("canPostPromotedNotifications", "()Z", "GetCanPostPromotedNotificationsHandler", ApiSince=36)>]
abstract member CanPostPromotedNotifications : unit -> bool
override this.CanPostPromotedNotifications : unit -> bool
傳回
- 屬性
備註
回傳來電應用程式格式正確通知是否能以推廣格式出現,這可能帶來更高的排名、更多表面的曝光率及更豐富的呈現。 應用程式可以透過將使用者傳送到符合系統意圖行動Settings.ACTION_APP_NOTIFICATION_PROMOTION_SETTINGS的活動來請求此權限。
Android 參考資料。android.app.NotificationManager.canPostPromotedNotifications
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。