Språk

Notification.Builder.SetRequestPromotedOngoing(Boolean) Method

Definition

Set whether this notification is requesting to be a promoted ongoing notification.

[Android.Runtime.Register("setRequestPromotedOngoing", "(Z)Landroid/app/Notification$Builder;", "GetSetRequestPromotedOngoing_ZHandler", ApiSince=36)]
public virtual Android.App.Notification.Builder SetRequestPromotedOngoing(bool requestPromotedOngoing);
[<Android.Runtime.Register("setRequestPromotedOngoing", "(Z)Landroid/app/Notification$Builder;", "GetSetRequestPromotedOngoing_ZHandler", ApiSince=36)>]
abstract member SetRequestPromotedOngoing : bool -> Android.App.Notification.Builder
override this.SetRequestPromotedOngoing : bool -> Android.App.Notification.Builder

Parameters

requestPromotedOngoing
Boolean

Returns

Attributes

Remarks

Set whether this notification is requesting to be a promoted ongoing notification.

This is the first requirement of Notification.hasPromotableCharacteristics().

Android reference for android.app.Notification.Builder.setRequestPromotedOngoing.

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