Country Picker Haptics
data class CountryPickerHaptics(val enabled: Boolean = true, val select: HapticFeedbackType? = HapticFeedbackType.Confirm, val toggleOn: HapticFeedbackType? = HapticFeedbackType.ToggleOn, val toggleOff: HapticFeedbackType? = HapticFeedbackType.ToggleOff, val scrub: HapticFeedbackType? = HapticFeedbackType.SegmentFrequentTick, val filter: HapticFeedbackType? = HapticFeedbackType.SegmentTick, val limitReached: HapticFeedbackType? = HapticFeedbackType.Reject, val error: HapticFeedbackType? = HapticFeedbackType.Reject)(source)
Haptic feedback for the picker's key moments.
Each moment maps to a platform haptic, which Compose Multiplatform plays through Android's haptic constants and iOS's UIFeedbackGenerators. Set a moment to null to keep it silent, or turn everything off with enabled.
Constructors
Link copied to clipboard
constructor(enabled: Boolean = true, select: HapticFeedbackType? = HapticFeedbackType.Confirm, toggleOn: HapticFeedbackType? = HapticFeedbackType.ToggleOn, toggleOff: HapticFeedbackType? = HapticFeedbackType.ToggleOff, scrub: HapticFeedbackType? = HapticFeedbackType.SegmentFrequentTick, filter: HapticFeedbackType? = HapticFeedbackType.SegmentTick, limitReached: HapticFeedbackType? = HapticFeedbackType.Reject, error: HapticFeedbackType? = HapticFeedbackType.Reject)
Properties
Link copied to clipboard
A field enters its error state.
Link copied to clipboard
A region filter changes.
Link copied to clipboard
A tick is refused because the selection is full.
Link copied to clipboard
The A–Z rail crosses into a new letter.
Link copied to clipboard
A single selection commits.
Link copied to clipboard
A country is unticked.
Link copied to clipboard
A country is ticked in multiple selection.