Share via


Settings.ActionAppNotificationPromotionSettings Field

Definition

Activity Action: Show the permission screen for allowing apps to post promoted notifications.

[Android.Runtime.Register("ACTION_APP_NOTIFICATION_PROMOTION_SETTINGS", ApiSince=36)]
public const string ActionAppNotificationPromotionSettings;
[<Android.Runtime.Register("ACTION_APP_NOTIFICATION_PROMOTION_SETTINGS", ApiSince=36)>]
val mutable ActionAppNotificationPromotionSettings : string

Field Value

Attributes

Remarks

Activity Action: Show the permission screen for allowing apps to post promoted notifications. Properly formatted priority notifications are elevated in appearance. For example they may be able to use colors, have richer progress bars, show as chips in the status bar, and/or permanently appear on always-on-displays. This functionality is intended to be reserved for user initiated ongoing activities like navigation, phone calls, and ride sharing.

Input: #EXTRA_APP_PACKAGE, the package to display.

In some cases, a matching Activity may not exist, so ensure you safeguard against this.

Output: Nothing.

Java documentation for android.provider.Settings.ACTION_APP_NOTIFICATION_PROMOTION_SETTINGS.

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.

Applies to