Udostępnij za pośrednictwem


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

If set to true, automatically dismisses the notification when touched.

Returns

Attributes

Remarks

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

See also