NativeVibration

actual class NativeVibration(views: Views)
expect class NativeVibration(views: Views)

Support for device vibrations. Currently only works in Browser and Android target. The amplitude is only available on android.

actual class NativeVibration(val views: Views)
actual class NativeVibration(val views: Views)
actual class NativeVibration(val views: Views)

Constructors

Link copied to clipboard
actual constructor(views: Views)
expect constructor(views: Views)
actual constructor(views: Views)
actual constructor(views: Views)
actual constructor(views: Views)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Functions

Link copied to clipboard
actual fun vibrate(time: TimeSpan, amplitude: Double)
expect fun vibrate(time: TimeSpan, amplitude: Double = 1.0)
actual fun vibrate(time: TimeSpan, amplitude: Double)
actual fun vibrate(time: TimeSpan, amplitude: Double)
actual fun vibrate(time: TimeSpan, amplitude: Double)
Link copied to clipboard
expect fun vibratePattern(timings: Array<TimeSpan>, amplitudes: Array<Double> = emptyArray())