阅读(147)
赞(6)
快应用 震动
2018-06-20 19:35:26 更新
{"name": "system.vibrator"}
import vibrator from '@system.vibrator'
或
const vibrator = require('@system.vibrator')
触发震动
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
mode 1030+ | String | 否 | 振动模式,"long" 表示长振动,"short" 表示短振动。默认为 long |
vibrator.vibrate({
mode: 'long'禁止使用。
后台运行详细用法参见 后台运行脚本。
Copyright©2023 字节宝字节宝| |
违法和不良信息举报电话:|举报邮箱:3111859717@qq.com
