HapticFeedbackType enum

The vibration type when user types

Inheritance

Constructors

HapticFeedbackType()
const

Values

disabled → const HapticFeedbackType

No vibration

lightImpact → const HapticFeedbackType

Provides a haptic feedback corresponding a collision impact with a light mass.

On iOS versions 10 and above, this uses a UIImpactFeedbackGenerator with UIImpactFeedbackStyleLight. This call has no effects on iOS versions below 10.

On Android, this uses HapticFeedbackConstants.VIRTUAL_KEY.

mediumImpact → const HapticFeedbackType

Provides a haptic feedback corresponding a collision impact with a medium mass.

On iOS versions 10 and above, this uses a UIImpactFeedbackGenerator with UIImpactFeedbackStyleMedium. This call has no effects on iOS versions below 10.

On Android, this uses HapticFeedbackConstants.KEYBOARD_TAP.

heavyImpact → const HapticFeedbackType

Provides a haptic feedback corresponding a collision impact with a heavy mass.

On iOS versions 10 and above, this uses a UIImpactFeedbackGenerator with UIImpactFeedbackStyleHeavy. This call has no effects on iOS versions below 10.

On Android, this uses HapticFeedbackConstants.CONTEXT_CLICK on API levels 23 and above. This call has no effects on Android API levels below 23.

selectionClick → const HapticFeedbackType

Provides a haptic feedback indication selection changing through discrete values.

On iOS versions 10 and above, this uses a UISelectionFeedbackGenerator. This call has no effects on iOS versions below 10.

On Android, this uses HapticFeedbackConstants.CLOCK_TICK.

vibrate → const HapticFeedbackType

Provides vibration haptic feedback to the user for a short duration.

On iOS devices that support haptic feedback, this uses the default system vibration value (kSystemSoundID_Vibrate).

On Android, this uses the platform haptic feedback API to simulate a response to a long press (HapticFeedbackConstants.LONG_PRESS).

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<HapticFeedbackType>
A constant List of the values in this enum, in order of their declaration.