语言

RemoteViews.SetChronometerCountDown(Int32, Boolean) 方法

定义

等效于 Chronometer#setCountDown(boolean) Chronometer.setCountDown 使用给定 viewId 调用计时表。

[Android.Runtime.Register("setChronometerCountDown", "(IZ)V", "GetSetChronometerCountDown_IZHandler", ApiSince=24)]
public virtual void SetChronometerCountDown(int viewId, bool isCountDown);
[<Android.Runtime.Register("setChronometerCountDown", "(IZ)V", "GetSetChronometerCountDown_IZHandler", ApiSince=24)>]
abstract member SetChronometerCountDown : int * bool -> unit
override this.SetChronometerCountDown : int * bool -> unit

参数

viewId
Int32

要更改的 Chronometer ID

isCountDown
Boolean

如果希望计时仪倒计时为基数,而不是倒计时,则为 True。

特性

注解

Java文档android.widget.RemoteViews.setChronometerCountDown(int, boolean)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于