Button Options
data class ButtonOptions(val id: String, val text: String? = null, val icon: String? = null, val style: ComponentStyle = ComponentStyle(), val buttonType: ButtonType = ButtonType.Primary, val size: ButtonSize = ButtonSize.Medium, val shape: ButtonShape = ButtonShape.Rounded, val isLoading: Boolean = false, val enabled: Boolean = true, val visible: Boolean = true, val backgroundColor: Color = Color.Blue, val textColor: Color = Color.White, val iconColor: Color = Color.White, val disabledBackgroundColor: Color = Color.Gray, val disabledTextColor: Color = Color(0.7f, 0.7f, 0.7f), val pressedBackgroundColor: Color = Color(0.8f, 0.8f, 1f), val loadingColor: Color = Color.White, val borderRadius: Float = 8.0f, val padding: EdgeInsets = EdgeInsets.symmetric(horizontal = 16f, vertical = 8f), val margin: EdgeInsets = EdgeInsets.zero, val minWidth: Float = 0.0f, val minHeight: Float = 0.0f, val shadow: Shadow? = null, val onClick: () -> Unit? = null, val onLongPress: () -> Unit? = null, val onDoubleClick: () -> Unit? = null, val customComponent: MediaSfuUIComponent? = null)
Configuration options for the Button component.
Constructors
Link copied to clipboard
constructor(id: String, text: String? = null, icon: String? = null, style: ComponentStyle = ComponentStyle(), buttonType: ButtonType = ButtonType.Primary, size: ButtonSize = ButtonSize.Medium, shape: ButtonShape = ButtonShape.Rounded, isLoading: Boolean = false, enabled: Boolean = true, visible: Boolean = true, backgroundColor: Color = Color.Blue, textColor: Color = Color.White, iconColor: Color = Color.White, disabledBackgroundColor: Color = Color.Gray, disabledTextColor: Color = Color(0.7f, 0.7f, 0.7f), pressedBackgroundColor: Color = Color(0.8f, 0.8f, 1f), loadingColor: Color = Color.White, borderRadius: Float = 8.0f, padding: EdgeInsets = EdgeInsets.symmetric(horizontal = 16f, vertical = 8f), margin: EdgeInsets = EdgeInsets.zero, minWidth: Float = 0.0f, minHeight: Float = 0.0f, shadow: Shadow? = null, onClick: () -> Unit? = null, onLongPress: () -> Unit? = null, onDoubleClick: () -> Unit? = null, customComponent: MediaSfuUIComponent? = null)
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard