이제 두 번째 Android 11 개발자 프리뷰를 사용할 수 있습니다. 테스트해 보고 의견을 공유하세요.

androidx.ui.core.selection

Classes

Selection

Information about the current Selection.

Top-level functions summary

Unit
SelectionContainer(selection: Selection?, onSelectionChange: (Selection?) -> Unit, children: () -> Unit)

Selection Composable.

Top-level properties summary

ProvidableAmbient<SelectionRegistrar?>

Ambient of SelectionRegistrar.

Top-level functions

SelectionContainer

@Composable fun SelectionContainer(
    selection: Selection?,
    onSelectionChange: (Selection?) -> Unit,
    children: () -> Unit
): Unit

Selection Composable.

The selection composable wraps composables and let them to be selectable. It paints the selection area with start and end handles.

Top-level properties

SelectionRegistrarAmbient

val SelectionRegistrarAmbient: ProvidableAmbient<SelectionRegistrar?>

Ambient of SelectionRegistrar. Composables that implement selection logic can use this ambient to get a SelectionRegistrar in order to subscribe and unsubscribe to SelectionRegistrar.