function renderSelectionPreview
source · line 44public
public fun DragSourceStart.renderSelectionPreview(regions: Array<Rect>, area: InputArea, draw: (Canvas) -> Unit): DragPreview?
Extension receiver: DragSourceStart
Paints only the visible selected regions, keeping the press anchored even in a scrolled or transformed area.
parameter area
source · line 46public
area: InputArea
parameter receiver
source · line 44public
DragSourceStart
parameter regions
source · line 45public
regions: Array<Rect>
parameter draw
source · line 47public
draw: (Canvas) -> Unit