CheckBox

fun CheckBox(checked: Boolean, modifier: Modifier = Modifier, style: CheckBoxStyle = LocalCheckBoxStyle.current, onCheckedChange: (Boolean) -> Unit? = null, enabled: Boolean = true, label: String? = null, description: String? = null, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, motion: Motion<CheckBoxMotionStyle> = rememberCheckBoxMotion( motionContext = rememberMotionContext(interactionSource), ))

Компонент CheckBox

Parameters

checked

установлен ли или снят флажок

modifier

модификатор

style

стиль компонента

onCheckedChange

слушатель изменения состояния checked

enabled

включен ли компонент

label

лейбл

description

описание

interactionSource

источник событий

motion

объект анимаций


fun CheckBox(state: ToggleableState, modifier: Modifier = Modifier, style: CheckBoxStyle = LocalCheckBoxStyle.current, onClick: () -> Unit? = null, enabled: Boolean = true, label: String? = null, description: String? = null, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, motion: Motion<CheckBoxMotionStyle> = rememberCheckBoxMotion( motionContext = rememberMotionContext(interactionSource), ))

Компонент CheckBox

Parameters

state

состояние ToggleableState

onClick

слушатель нажатий

modifier

модификатор

style

стиль компонента

label

лейбл

description

описание

enabled

включен ли компонент

interactionSource

источник событий

motion

объект анимаций


fun CheckBox(state: ToggleableState, labelContent: @Composable () -> Unit, modifier: Modifier = Modifier, style: CheckBoxStyle = LocalCheckBoxStyle.current, onClick: () -> Unit? = null, enabled: Boolean = true, descriptionContent: @Composable () -> Unit? = null, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, motion: Motion<CheckBoxMotionStyle> = rememberCheckBoxMotion( motionContext = rememberMotionContext(interactionSource), ))

Компонент CheckBox

Parameters

state

состояние ToggleableState

labelContent

лейбл

onClick

слушатель нажатий

modifier

модификатор

style

стиль компонента

enabled

включен ли компонент

descriptionContent

описание

interactionSource

источник событий

motion

объект анимаций


fun CheckBox(value: CheckBoxValue, modifier: Modifier = Modifier, style: CheckBoxStyle = LocalCheckBoxStyle.current, onClick: () -> Unit? = null, enabled: Boolean = true, label: String? = null, description: String? = null, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, motion: Motion<CheckBoxMotionStyle> = rememberCheckBoxMotion( motionContext = rememberMotionContext(interactionSource), ))

Компонент CheckBox

Parameters

value

значение CheckBoxValue

modifier

модификатор

style

стиль компонента

onClick

слушатель нажатий

enabled

включен ли компонент

label

лейбл

description

описание

interactionSource

источник событий

motion

объект анимаций


fun CheckBox(value: CheckBoxValue, labelContent: @Composable () -> Unit, modifier: Modifier = Modifier, style: CheckBoxStyle = LocalCheckBoxStyle.current, onClick: () -> Unit? = null, enabled: Boolean = true, descriptionContent: @Composable () -> Unit? = null, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, motion: Motion<CheckBoxMotionStyle> = rememberCheckBoxMotion( motionContext = rememberMotionContext(interactionSource), ))

Компонент CheckBox

Parameters

value

значение CheckBoxValue

labelContent

лейбл

onClick

слушатель нажатий

modifier

модификатор

style

стиль компонента

enabled

включен ли компонент

descriptionContent

описание

interactionSource

источник событий

motion

объект анимаций