NotificationManager.CanPostPromotedNotifications メソッド

定義

呼び出し元のアプリの適切に書式設定された通知を昇格形式で表示できるかどうかを返します。その結果、ランキングが高くなり、追加のサーフェス上の外観が表示され、プレゼンテーションが充実する可能性があります。

[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.app.NotificationManager.canPostPromotedNotificationsの Android リファレンス。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象