Notification.Builder.SetAutoCancel(Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.