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
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.