TextSelectionHandler

interface TextSelectionHandler
androidx.ui.core.selection.TextSelectionHandler

An interface handling selection. Get selection from a composable by passing in the start and end of selection in a selection container as a pair, and the layout coordinates of the selection container.

Summary

Public methods

abstract Selection?
getSelection(selectionCoordinates: Pair<PxPosition, PxPosition>, containerLayoutCoordinates: LayoutCoordinates, mode: SelectionMode)

Public methods

getSelection

abstract fun getSelection(
    selectionCoordinates: Pair<PxPosition, PxPosition>,
    containerLayoutCoordinates: LayoutCoordinates,
    mode: SelectionMode
): Selection?