VibrationPattern

data class VibrationPattern(val timings: LongArray, val amplitudes: IntArray, val fallbackMs: Long)(source)

Describes a semantic vibration pattern.

Use the provided presets for consistent UI feedback:

Custom patterns:

val pattern = VibrationPattern(
timings = longArrayOf(0, 50, 100, 50),
amplitudes = intArrayOf(0, 255, 0, 128),
fallbackMs = 50L
)
vibrationHelper.vibrate(pattern)

Constructors

Link copied to clipboard
constructor(timings: LongArray, amplitudes: IntArray, fallbackMs: Long)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int