RadioGroup.IOnCheckedChangeListener.OnCheckedChanged Method

Definition

Called when the checked radio button has changed.

[Android.Runtime.Register("onCheckedChanged", "(Landroid/widget/RadioGroup;I)V", "GetOnCheckedChanged_Landroid_widget_RadioGroup_IHandler:Android.Widget.RadioGroup/IOnCheckedChangeListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void OnCheckedChanged (Android.Widget.RadioGroup? group, int checkedId);
[<Android.Runtime.Register("onCheckedChanged", "(Landroid/widget/RadioGroup;I)V", "GetOnCheckedChanged_Landroid_widget_RadioGroup_IHandler:Android.Widget.RadioGroup/IOnCheckedChangeListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member OnCheckedChanged : Android.Widget.RadioGroup * int -> unit

Parameters

group
RadioGroup

the group in which the checked radio button has changed

checkedId
Int32

the unique identifier of the newly checked radio button

Attributes

Remarks

Called when the checked radio button has changed. When the selection is cleared, checkedId is -1.

Java documentation for android.widget.RadioGroup.OnCheckedChangeListener.onCheckedChanged(android.widget.RadioGroup, int).

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