SelectionLifetime

sealed interface SelectionLifetime(source)

Background lifecycle policy for a ChartSelection.

The policy governs automatic invalidation only. Gestures (tap, drag) and explicit clear() calls are always honored. Data changes and out-of-bounds indices are handled by rememberSelectionLifecycle independently of this policy.

Inheritors

Types

Link copied to clipboard
data class AutoDeselect(val delayMs: Long) : SelectionLifetime

Selection auto-clears after delayMs milliseconds unless renewed by a new selection. Each new selection restarts the timer.

Link copied to clipboard

Selection persists until explicitly cleared or invalidated by the lifecycle helper. Default for tap-to-pin charts.