qcloud-iotexplorer-h5-panel-sdk
Advanced tools
Comparing version 1.2.5 to 1.2.6
{ | ||
"name": "qcloud-iotexplorer-h5-panel-sdk", | ||
"version": "1.2.5", | ||
"version": "1.2.6", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/release/qcloud-iotexplorer-h5-panel-sdk", |
@@ -7,3 +7,3 @@ # (DEPRECATED) qcloud-iotexplorer-h5-panel-sdk | ||
*为保证 sdk 的问题修复和特性更新的时效性,原 npm 引入模式已废弃,现 sdk 将直接挂载在 h5 面板的 window 对象上,可直接通过 `window.h5PanelSdk` 或通过 webpack 配置 externals 来访问 h5 sdk。* | ||
*为保证 sdk 的问题修复和特性更新的时效性,原 npm 引入模式已废弃,现 sdk 将直接挂载在 h5 面板页面的 window 对象上,可直接通过 `window.h5PanelSdk` 或通过 webpack 配置 externals 来访问 h5 sdk。* | ||
@@ -112,2 +112,10 @@ *该 npm 包后续仍可使用,但将不再维护,为保证能够及时获取最新 sdk 特性,建议改由全局变量获取 sdk 实例。* | ||
### sdk.triggerVibrateShort(type?: 'heavy' | 'medium' | 'light'): Promise; | ||
触发一次小程序的短震动,参考:https://developers.weixin.qq.com/miniprogram/dev/api/device/vibrate/wx.vibrateShort.html#%E5%8F%82%E6%95%B0 | ||
### sdk.setAutoTriggerVibrateShort(autoTriggerVibrateShort: boolean, autoTriggerVibrateShortType: 'heavy' | 'medium' | 'light') => void; | ||
设置是否自动触发震动,若设置为true,则每次调用 controlDeviceData 中含有 bool 类型的物模型变化时,会自动触发一次震动 | ||
### sdk.requestTokenApi: (action, data, options) => Promise | ||
@@ -114,0 +122,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
300902
0
872