Notification.Builder.SetTimeoutAfter(Int64) Method

Definition

Specifies a duration in milliseconds after which this notification should be canceled, if it is not already canceled.

[Android.Runtime.Register("setTimeoutAfter", "(J)Landroid/app/Notification$Builder;", "GetSetTimeoutAfter_JHandler", ApiSince=26)]
public virtual Android.App.Notification.Builder SetTimeoutAfter(long durationMs);
[<Android.Runtime.Register("setTimeoutAfter", "(J)Landroid/app/Notification$Builder;", "GetSetTimeoutAfter_JHandler", ApiSince=26)>]
abstract member SetTimeoutAfter : int64 -> Android.App.Notification.Builder
override this.SetTimeoutAfter : int64 -> Android.App.Notification.Builder

Parameters

durationMs
Int64

long

Returns

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

Attributes

Remarks

Specifies a duration in milliseconds after which this notification should be canceled, if it is not already canceled.

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

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