Udostępnij za pośrednictwem


CompoundButton.IOnCheckedChangeListener.OnCheckedChanged Method

Definition

Called when the checked state of a compound button has changed.

[Android.Runtime.Register("onCheckedChanged", "(Landroid/widget/CompoundButton;Z)V", "GetOnCheckedChanged_Landroid_widget_CompoundButton_ZHandler:Android.Widget.CompoundButton/IOnCheckedChangeListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void OnCheckedChanged (Android.Widget.CompoundButton? buttonView, bool isChecked);
[<Android.Runtime.Register("onCheckedChanged", "(Landroid/widget/CompoundButton;Z)V", "GetOnCheckedChanged_Landroid_widget_CompoundButton_ZHandler:Android.Widget.CompoundButton/IOnCheckedChangeListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member OnCheckedChanged : Android.Widget.CompoundButton * bool -> unit

Parameters

buttonView
CompoundButton

The compound button view whose state has changed.

isChecked
Boolean

The new checked state of buttonView.

Attributes

Remarks

Called when the checked state of a compound button has changed.

Java documentation for android.widget.CompoundButton.OnCheckedChangeListener.onCheckedChanged(android.widget.CompoundButton, 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