Haptic

actual class Haptic(context: Any)

Creates vibrations using Vibration presets which have been standardized across platforms.

Parameters

context

value must be Context on Android and can be Any for every other platform

See also

Creates vibrations using Vibration presets which have been standardized across platforms.

Parameters

context

value must be Context on Android and can be Any for every other platform

See also

actual class Haptic(context: Any)

Creates vibrations using Vibration presets which have been standardized across platforms.

Parameters

context

unused value except on Android.

See also

actual class Haptic(context: Any)

Creates vibrations using Vibration presets which have been standardized across platforms.

Parameters

context

unused value except on Android.

See also

actual class Haptic(context: Any)

Creates vibrations using Vibration presets which have been standardized across platforms.

Parameters

context

unused value except on Android.

See also

actual class Haptic(context: Any)

Creates vibrations using Vibration presets which have been standardized across platforms.

Parameters

context

unused value except on Android.

See also

actual class Haptic(context: Any)

Creates vibrations using Vibration presets which have been standardized across platforms.

Parameters

context

unused value except on Android.

See also

Constructors

Link copied to clipboard
actual constructor(context: Any)

Creates a reusable Haptic instance which can create multiple vibrations

expect constructor(context: Any)

Creates a reusable Haptic instance which can create multiple vibrations

actual constructor(context: Any)

Creates a reusable Haptic instance which can create multiple vibrations

actual constructor(context: Any)

Creates a reusable Haptic instance which can create multiple vibrations

actual constructor(context: Any)

Creates a reusable Haptic instance which can create multiple vibrations

actual constructor(context: Any)

Creates a reusable Haptic instance which can create multiple vibrations

actual constructor(context: Any)

Creates a reusable Haptic instance which can create multiple vibrations

Types

Link copied to clipboard
actual object DEFAULTS

A set of default Vibration values

expect object DEFAULTS

Contains default Vibration values Some platforms have more Vibration default options than others The standard defaults are TICK and CLICK

actual object DEFAULTS

Contains default Vibration values

actual object DEFAULTS

Contains default Vibration values

actual object DEFAULTS

a set of default Vibration values

actual object DEFAULTS

Contains default Vibration values

actual object DEFAULTS

Contains the Vibration values

Link copied to clipboard
data class VibrationAndroid(val value: VibrationEffect) : Vibration

Used to wrap the Vibration interface due to typealias constraints

Link copied to clipboard
data class VibrationIos(val value: UIImpactFeedbackStyle) : Vibration

Used to wrap the Vibration interface due to typealias constraints

Link copied to clipboard
data class VibrationLong(val value: Long) : Vibration

Used to wrap the Vibration interface due to typealias constraints

Link copied to clipboard
data class VibrationWatchos(val value: WKHapticType) : Vibration

Used to wrap the Vibration interface due to typealias constraints

VibrationWrapper
Link copied to clipboard
data class VibrationWrapper(val value: Int) : Vibration

Used to wrap the Vibration interface due to typealias constraints

data class VibrationWrapper(val value: Long) : Vibration

Used to wrap the Vibration interface due to typealias constraints

data class VibrationWrapper(val value: Int) : Vibration

Used to wrap the Vibration interface due to typealias constraints

Functions

Link copied to clipboard
@RequiresPermission(value = "android.permission.VIBRATE")
actual fun vibrate(pattern: Vibration)

Executes a vibration immediately based on a Vibration pattern

expect fun vibrate(pattern: Vibration)

Executes a vibration immediately based on a Vibration pattern

actual fun vibrate(pattern: Vibration)

Executes a vibration immediately based on a Vibration pattern

actual fun vibrate(pattern: Vibration)

Executes a vibration immediately based on a Vibration pattern. If you want to specify a duration, use VibrationWrapper to pass the number of milliseconds as a Vibration

actual fun vibrate(pattern: Vibration)

Executes a vibration immediately based on a Vibration pattern

actual fun vibrate(pattern: Vibration)

Executes a vibration immediately based on a Vibration pattern. If you want to specify a duration, use VibrationWrapper to pass the number of milliseconds as a Vibration

actual fun vibrate(pattern: Vibration)

Executes a vibration immediately based on a Vibration pattern