NotificationManager.CanPostPromotedNotifications Method
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.
Returns whether the calling app's properly formatted notifications can appear in a promoted format, which may result in higher ranking, appearances on additional surfaces, and richer presentation.
[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
Returns
- Attributes
Remarks
Returns whether the calling app's properly formatted notifications can appear in a promoted format, which may result in higher ranking, appearances on additional surfaces, and richer presentation.
Apps can request this permission by sending the user to the activity that matches the system intent action android.provider.Settings#ACTION_APP_NOTIFICATION_PROMOTION_SETTINGS
.
Java documentation for android.app.NotificationManager.canPostPromotedNotifications()
.
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.