Commit 6ff2e897 by 朱建香

2018/01/09 12:10

UIOT.js更新
parent 7ac0e290
...@@ -4696,13 +4696,13 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function" ...@@ -4696,13 +4696,13 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
var Ready = __webpack_require__(1); var Ready = __webpack_require__(1);
var NativeBridge = function (_Ready) { var OSSettingBridge = function (_Ready) {
_inherits(NativeBridge, _Ready); _inherits(OSSettingBridge, _Ready);
function NativeBridge() { function OSSettingBridge() {
_classCallCheck(this, NativeBridge); _classCallCheck(this, OSSettingBridge);
var _this = _possibleConstructorReturn(this, (NativeBridge.__proto__ || Object.getPrototypeOf(NativeBridge)).call(this)); var _this = _possibleConstructorReturn(this, (OSSettingBridge.__proto__ || Object.getPrototypeOf(OSSettingBridge)).call(this));
document.addEventListener("plusready", function () { document.addEventListener("plusready", function () {
_this.onPlusready(); _this.onPlusready();
...@@ -4711,35 +4711,35 @@ var NativeBridge = function (_Ready) { ...@@ -4711,35 +4711,35 @@ var NativeBridge = function (_Ready) {
return _this; return _this;
} }
_createClass(NativeBridge, [{ _createClass(OSSettingBridge, [{
key: 'onPlusready', key: 'onPlusready',
value: function onPlusready() { value: function onPlusready() {
var _NATIVECODE = 'UgenNative', var _NATIVECODE = 'UgenNative',
B = window.plus.bridge, B = window.plus.bridge,
callbackID = void 0; callbackID = void 0;
var UgenNative = { var OSSetting = {
//判断通知是否开启 //判断通知是否开启
isNotifycationOpen: function isNotifycationOpen() { isNotifycationOpen: function isNotifycationOpen() {
return B.execSync(_NATIVECODE, "isNotifycationOpen", []); return B.execSync(_NATIVECODE, "isNotifycationOpen", []);
}, },
//跳转到通知设置界面 //跳转到通知设置界面
toNotifycationSetting: function toNotifycationSetting() { toSetting: function toSetting(type) {
return B.execSync(_NATIVECODE, "toNotifycationSetting", []); return B.execSync(_NATIVECODE, "toSetting", [type]);
} }
}; };
this.UgenNative = UgenNative; this.OSSetting = OSSetting;
} }
}, { }, {
key: 'onReady', key: 'onReady',
value: function onReady() { value: function onReady() {
return this.UgenNative; return this.OSSetting;
} }
}]); }]);
return NativeBridge; return OSSettingBridge;
}(Ready); }(Ready);
module.exports = NativeBridge; module.exports = OSSettingBridge;
/***/ }), /***/ }),
/* 43 */ /* 43 */
...@@ -4811,12 +4811,12 @@ var Bridge = __webpack_require__(42); ...@@ -4811,12 +4811,12 @@ var Bridge = __webpack_require__(42);
/** /**
* @class * @class
* BLE * OSSetting
*/ */
var NativeMethod = function () { var OSSettingMethod = function () {
function NativeMethod() { function OSSettingMethod() {
_classCallCheck(this, NativeMethod); _classCallCheck(this, OSSettingMethod);
this.map = []; this.map = [];
this.bridge = new Bridge(); this.bridge = new Bridge();
...@@ -4828,28 +4828,28 @@ var NativeMethod = function () { ...@@ -4828,28 +4828,28 @@ var NativeMethod = function () {
*/ */
_createClass(NativeMethod, [{ _createClass(OSSettingMethod, [{
key: 'isNotifycationOpen', key: "isNotifycationOpen",
value: function isNotifycationOpen() { value: function isNotifycationOpen() {
return this.bridge.obj.isNotifycationOpen(); return this.bridge.obj.isNotifycationOpen();
} }
/** /**
* 跳转到通知设置界面 * 跳转到通知设置界面
* @example iot.native.toNotifycationSetting * @example iot.native.toSetting
*/ */
}, { }, {
key: 'toNotifycationSetting', key: "toNotifycationSetting",
value: function toNotifycationSetting() { value: function toNotifycationSetting() {
return this.bridge.obj.toNotifycationSetting(); return this.bridge.obj.toSetting("notify");
} }
}]); }]);
return NativeMethod; return OSSettingMethod;
}(); }();
module.exports = NativeMethod; module.exports = OSSettingMethod;
/***/ }), /***/ }),
/* 45 */ /* 45 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment