跳到主要内容

bn.vibrateShort

vibrateShort(options?): Promise<void>

description Make the mobile phone vibrate for a short time (15 ms). Only in iPhone 7 / 7 More Above and Android Model entry into force.

example

 bn.vibrateShort({ type: "light" })

Parameters

NameType
options?VibrateShortOption

Returns

Promise<void>


Interface: VibrateShortOption

NameTypeDescription
type"light" | "medium" | "heavy"Vibration intensity type, valid values are: heavy, medium, light