RemoteViews.SetChronometer(Int32, Int64, String, 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.
Equivalent to calling Chronometer#setBase Chronometer.setBase
,
Chronometer#setFormat Chronometer.setFormat
,
and Chronometer#start Chronometer.start()
or
Chronometer#stop Chronometer.stop()
.
[Android.Runtime.Register("setChronometer", "(IJLjava/lang/String;Z)V", "GetSetChronometer_IJLjava_lang_String_ZHandler")]
public virtual void SetChronometer (int viewId, long base, string? format, bool started);
[<Android.Runtime.Register("setChronometer", "(IJLjava/lang/String;Z)V", "GetSetChronometer_IJLjava_lang_String_ZHandler")>]
abstract member SetChronometer : int * int64 * string * bool -> unit
override this.SetChronometer : int * int64 * string * bool -> unit
Parameters
- viewId
- Int32
The id of the Chronometer
to change
- base
- Int64
The time at which the timer would have read 0:00. This
time should be based off of
android.os.SystemClock#elapsedRealtime SystemClock.elapsedRealtime()
.
- format
- String
The Chronometer format string, or null to simply display the timer value.
- started
- Boolean
True if you want the clock to be started, false if not.
- 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.