Notification.Builder.SetUsesChronometer(Boolean) Method

Definition

Show the Notification.when field as a stopwatch.

[Android.Runtime.Register("setUsesChronometer", "(Z)Landroid/app/Notification$Builder;", "GetSetUsesChronometer_ZHandler")]
public virtual Android.App.Notification.Builder SetUsesChronometer(bool b);
[<Android.Runtime.Register("setUsesChronometer", "(Z)Landroid/app/Notification$Builder;", "GetSetUsesChronometer_ZHandler")>]
abstract member SetUsesChronometer : bool -> Android.App.Notification.Builder
override this.SetUsesChronometer : bool -> Android.App.Notification.Builder

Parameters

b
Boolean

boolean

Returns

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

Attributes

Remarks

Show the Notification.when field as a stopwatch. Instead of presenting when as a timestamp, the notification will show an automatically updating display of the minutes and seconds since when. Useful when showing an elapsed time (like an ongoing phone call). The counter can also be set to count down to when when using setChronometerCountDown(boolean). If the notification is promoted ongoing then this stopwatch might also be displayed in its status bar chip.

See also:

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

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