Skip to main content

Documentation Index

Fetch the complete documentation index at: https://cometchat-22654f5b-docs-android-v6-beta2.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

The RadioButtonElement class is utilised to create a single selection input element in a user interface.

Parameters

NameTypeDescription
elementIdstringUsed to set a unique ID for the element
labelstringUsed to set a label for the element
options[OptionElement]Used to set options for the element
optionalboolUsed to set an optional flag for the element
defaultValueStringUsed to set a default value for the element

Class Usage

Here’s how to create an instance of the RadioButtonElement class:
let optionElement = OptionElement()
optionElement.id = "Male"
otionElement.value = "Male"
let radioButtonElement = RadioButtonElement()
radioButtonElement.elementId = "gender"
radioButtonElement.label = "Gender"
radioButtonElement.options.append(optionElement)