Interactive Controls (Android)
User interface controls that respond to user interaction on Android widgets.
Button
Section titled “Button”Standard button component.
Parameters:
enabled(boolean, optional): Whether the button is enabled.deepLinkUrl(string, optional): URL to open when the button is clicked. If not provided, the app will open to its main activity.
Voltra also provides specialized button variants:
FilledButton
Section titled “FilledButton”text(string): Button label.enabled(boolean, optional).deepLinkUrl(string, optional).icon(object, optional):{ assetName: string }.backgroundColor(string, optional).contentColor(string, optional).maxLines(number, optional).
OutlineButton
Section titled “OutlineButton”text(string): Button label.enabled(boolean, optional).deepLinkUrl(string, optional).icon(object, optional):{ assetName: string }.contentColor(string, optional).maxLines(number, optional).
CircleIconButton & SquareIconButton
Section titled “CircleIconButton & SquareIconButton”enabled(boolean, optional).deepLinkUrl(string, optional).icon(object, optional):{ assetName: string, base64: string }.contentDescription(string, optional).backgroundColor(string, optional).contentColor(string, optional).
Clickable Components
Section titled “Clickable Components”Most components support being clickable by setting the pressable prop (short name prs in raw elements) in their props.
Parameters:
pressable(boolean): Set totrueto make the component respond to clicks.deepLinkUrl(string, optional): URL to open when clicked.
Switch
Section titled “Switch”A toggle switch component.
Parameters:
id(string): Unique identifier for interaction events.checked(boolean, optional): Current state of the switch.deepLinkUrl(string, optional): URL to open when clicked.text(string, optional): Label displayed next to the switch.thumbCheckedColor(string, optional).thumbUncheckedColor(string, optional).trackCheckedColor(string, optional).trackUncheckedColor(string, optional).maxLines(number, optional): Maximum lines for the label.
CheckBox
Section titled “CheckBox”Standard checkbox component.
Parameters:
id(string): Unique identifier for interaction events.checked(boolean, optional).deepLinkUrl(string, optional).text(string, optional).checkedColor(string, optional).uncheckedColor(string, optional).maxLines(number, optional).
RadioButton
Section titled “RadioButton”Standard radio button component.
Parameters:
id(string): Unique identifier for interaction events.checked(boolean, optional).enabled(boolean, optional).deepLinkUrl(string, optional).text(string, optional).checkedColor(string, optional).uncheckedColor(string, optional).maxLines(number, optional).