Class

HapticFeedbackType

Constants to be used to perform haptic feedback effects via HapticFeedback.performHapticFeedback.

Source set: Common
public class HapticFeedbackType(internal val value: Int)

Constants to be used to perform haptic feedback effects via HapticFeedback.performHapticFeedback.

Members

Companion

Source set: Common
public companion object

Properties

Confirm

Source set: Common
public val Confirm: HapticFeedbackType

A haptic effect to signal the confirmation or successful completion of a user interaction..

ContextClick

Source set: Common
public val ContextClick: HapticFeedbackType

The user has performed a context click on an object.

GestureEnd

Source set: Common
public val GestureEnd: HapticFeedbackType

The user has finished a gesture (e.g. on the soft keyboard).

GestureThresholdActivate

Source set: Common
public val GestureThresholdActivate: HapticFeedbackType

The user is executing a swipe/drag-style gesture, such as pull-to-refresh, where the gesture action is eligible at a certain threshold of movement, and can be cancelled by moving back past the threshold.

KeyboardTap

Source set: Common
public val KeyboardTap: HapticFeedbackType

The user has pressed a soft keyboard key.

LongPress

Source set: Common
public val LongPress: HapticFeedbackType

The user has performed a long press on an object that is resulting in an action being performed.

Reject

Source set: Common
public val Reject: HapticFeedbackType

A haptic effect to signal the rejection or failure of a user interaction.

SegmentFrequentTick

Source set: Common
public val SegmentFrequentTick: HapticFeedbackType

The user is switching between a series of many potential choices, for example minutes on a clock face, or individual percentages.

SegmentTick

Source set: Common
public val SegmentTick: HapticFeedbackType

The user is switching between a series of potential choices, for example items in a list or discrete points on a slider.

TextHandleMove

Source set: Common
public val TextHandleMove: HapticFeedbackType

The user has performed a selection/insertion handle move on text field.

ToggleOff

Source set: Common
public val ToggleOff: HapticFeedbackType

The user has toggled a switch or button into the off position.

ToggleOn

Source set: Common
public val ToggleOn: HapticFeedbackType

The user has toggled a switch or button into the on position.

VirtualKey

Source set: Common
public val VirtualKey: HapticFeedbackType

The user has pressed on a virtual on-screen key.

Functions

values

Source set: Common
public fun values(): List<HapticFeedbackType>

Returns a list of possible values of HapticFeedbackType.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: