提交 91198f1b 编写于 作者: M mehaotian

feat(App): vibrate

上级 b4dd3b38
import {
API_VIBRATE_SHORT,
API_VIBRATE_LONG,
defineAsyncApi,
API_TYPE_VIBRATE_SHORT,
API_TYPE_VIBRATE_LONG,
} from '@dcloudio/uni-api'
export const vibrateShort = defineAsyncApi<API_TYPE_VIBRATE_SHORT>(
API_VIBRATE_SHORT,
(_, { resolve }) => {
plus.device.vibrate(15)
resolve()
}
)
export const vibrateLong = defineAsyncApi<API_TYPE_VIBRATE_LONG>(
API_VIBRATE_LONG,
(_, { resolve }) => {
plus.device.vibrate(400)
resolve()
}
)
export * from './file/getFileInfo'
export * from './device/compass'
export * from './device/vibrate'
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册