ControlButtons

ControlButtons - A UI component for displaying a collection of interactive control buttons.

This component provides:

  • Flexible button layout (horizontal or vertical)

  • Customizable button appearance and behavior

  • Support for icons, text, and custom components

  • Active/inactive states with different colors

  • Disabled state support

  • Click, long press, and double click interactions

Constructors

Link copied to clipboard
constructor(options: ControlButtonsOptions)

Properties

Link copied to clipboard
Link copied to clipboard
open override val children: StateFlow<List<MediaSfuUIComponent>>

Get all child components.

Link copied to clipboard
open override val currentStyle: ComponentStyle

Get the current style of this component.

Link copied to clipboard
open override val id: String

Unique identifier for this UI component.

Link copied to clipboard
open override val isEnabled: Boolean

Whether this component is currently enabled.

Link copied to clipboard
open override val isVisible: Boolean

Whether this component is currently visible.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun addChild(component: MediaSfuUIComponent)

Add a child component to this layout.

Link copied to clipboard
open override fun applyStyle(style: ComponentStyle)

Apply a style to this component.

Link copied to clipboard
open override fun clearChildren()

Clear all child components.

Link copied to clipboard
open override fun disable()

Disable this component.

Link copied to clipboard
open override fun dispose()

Dispose of this component and release resources.

Link copied to clipboard
open override fun enable()

Enable this component.

Link copied to clipboard
open override fun hide()

Hide this component.

Link copied to clipboard
open override fun removeChild(component: MediaSfuUIComponent)

Remove a child component from this layout.

Link copied to clipboard
open override fun show()

Show this component.