Notification.Builder.SetAutoCancel(Boolean) Method

Definition

Make this notification automatically dismissed when the user touches it.

[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

Parameters

autoCancel
Boolean

boolean

Returns

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

Attributes

Remarks

Make this notification automatically dismissed when the user touches it.

See also:

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

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