語言

Notification.Builder.SetAutoCancel(Boolean) 方法

定義

讓使用者觸碰時自動關閉這個通知。

[Android.Runtime.Register("setAutoCancel", "(Z)Landroid/app/Notification$Builder;", "GetSetAutoCancel_ZHandler")]
public virtual Android.App.Notification.Builder SetAutoCancel(bool autoCancel);
[<Android.Runtime.Register("setAutoCancel", "(Z)Landroid/app/Notification$Builder;", "GetSetAutoCancel_ZHandler")>]
abstract member SetAutoCancel : bool -> Android.App.Notification.Builder
override this.SetAutoCancel : bool -> Android.App.Notification.Builder

參數

autoCancel
Boolean

boolean

傳回

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

屬性

備註

讓使用者觸碰時自動關閉這個通知。

另請參閱:

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

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

適用於