HapticsPlugin.notification()
2023年8月11日
- Plugin
震动通知效果
HapticsPlugin.notification(options)
参数
选项参数是一个 NotificationOptions对象;
返回值
返回一个promise
示例
import { hapticsPlugin } from "@plaoc/plugin";
hapticsPlugin.notification({
type: "SUCCESS"
})
平台兼容性
属性/方法/事件 | Android | IOS | Desktop-Dev | Desktop |
---|---|---|---|---|
notification | ✅ | ✅ | ✅ | X |
相关链接
Powered by Waline v2.13.0