Notification.Builder.SetRequestPromotedOngoing(Boolean) 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.
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
true to request promoted ongoing treatment; false to record no request.
Returns
This builder after the promotion request has been stored; storing the request does not guarantee promotion.
- 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.