Share via


RemoteViews.SetCompoundButtonChecked(Int32, Boolean) Method

Definition

Equivalent to calling android.widget.CompoundButton#setChecked(boolean).

[Android.Runtime.Register("setCompoundButtonChecked", "(IZ)V", "GetSetCompoundButtonChecked_IZHandler", ApiSince=31)]
public virtual void SetCompoundButtonChecked (int viewId, bool checked);
[<Android.Runtime.Register("setCompoundButtonChecked", "(IZ)V", "GetSetCompoundButtonChecked_IZHandler", ApiSince=31)>]
abstract member SetCompoundButtonChecked : int * bool -> unit
override this.SetCompoundButtonChecked : int * bool -> unit

Parameters

viewId
Int32

The id of the view whose property to set.

checked
Boolean

true to check the button, false to uncheck it.

Attributes

Remarks

Java documentation for android.widget.RemoteViews.setCompoundButtonChecked(int, boolean).

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