RichUtils / pyxis.uzuki.live.richutilskt.utils / android.content.Context / vibrate

vibrate

fun Context.vibrate(millSec: Long): Unit

Vibrate need VIBRATE permission

Parameters

millSec - duration of vibrate

@JvmOverloads fun Context.vibrate(pattern: LongArray, repeat: Int = -1): Unit

Vibrate need VIBRATE permission

Parameters

pattern - vibrate pattern

repeat - count of repeat, if once, give repeat as -1