Package-level declarations

Properties

Link copied to clipboard

Check whether device has Vibrator

Functions

Link copied to clipboard
@RequiresPermission(allOf = ["android.permission.VIBRATE"])
fun Context.vibrate(milliseconds: Long)
@RequiresPermission(allOf = ["android.permission.VIBRATE"])
fun Context.vibrate(milliseconds: Long, effect: Int? = null)

Vibrate from context with milliseconds

@RequiresPermission(allOf = ["android.permission.VIBRATE"])
fun Context.vibrate(pattern: LongArray, repeat: Int)

Vibrate from context with pattern and repeat

@RequiresPermission(allOf = ["android.permission.VIBRATE"])
fun Context.vibrate(pattern: LongArray, repeat: Int, amplitudes: IntArray)

Vibrate from context with pattern, repeat and amplitudes