Notification.Builder.SetFlag(Int32, Boolean) Method

Definition

Set the value for a notification flag

[Android.Runtime.Register("setFlag", "(IZ)Landroid/app/Notification$Builder;", "GetSetFlag_IZHandler", ApiSince=30)]
public virtual Android.App.Notification.Builder SetFlag(int mask, bool value);
[<Android.Runtime.Register("setFlag", "(IZ)Landroid/app/Notification$Builder;", "GetSetFlag_IZHandler", ApiSince=30)>]
abstract member SetFlag : int * bool -> Android.App.Notification.Builder
override this.SetFlag : int * bool -> Android.App.Notification.Builder

Parameters

mask
Int32

int: Bit mask of the flag. Value is either 0 or a combination of the following: Notification.FLAG_SHOW_LIGHTS Notification.FLAG_ONGOING_EVENT Notification.FLAG_INSISTENT Notification.FLAG_ONLY_ALERT_ONCE Notification.FLAG_AUTO_CANCEL Notification.FLAG_NO_CLEAR Notification.FLAG_FOREGROUND_SERVICE Notification.FLAG_HIGH_PRIORITY Notification.FLAG_LOCAL_ONLY Notification.FLAG_GROUP_SUMMARY Notification.FLAG_BUBBLE Notification.FLAG_PROMOTED_ONGOING

value
Boolean

boolean: Status (on/off) of the flag

Returns

This Android.App.Notification.Builder instance, allowing calls to be chained.

Attributes

Remarks

Set the value for a notification flag

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

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