語言

Notification.Builder.SetFlag(Int32, Boolean) 方法

定義

設定通知旗標的值

[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

參數

mask
Int32

智力:旗幟的面具。 值為0或以下組合: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

布林值:旗幟的狀態(開/關)

傳回

這個 Android.App.Notification.Builder 實例,允許通話串接。

屬性

備註

設定通知旗標的值

Android 參考資料。android.app.Notification.Builder.setFlag

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於