This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Selects items with drag gestures after a long press. | |
* | |
* After long pressing on an initial item, other items may be selected when dragging away from the | |
* initial element and unselected when dragging towards the initial element. The initial element | |
* remains selected during the drag. The pointer input handling will be cancelled and **re-started** | |
* when [selectableWithDrag] is recomposed with a different [key]. | |
* | |
* @param itemAtPosition finds the item index at the given position. | |
* @param selectedItems items that are currently selected. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** State update interval. */ | |
sealed class Interval { | |
/** Update the state every [duration]. */ | |
data class Delay(val duration: Duration) : Interval() | |
/** Update the state every frame. */ | |
data object Frame : Interval() | |
} | |
/** Returns a state of the elapsed time since this composable first entered composition. */ |