Commit 6ff2e897 by 朱建香

2018/01/09 12:10

UIOT.js更新
parent 7ac0e290
......@@ -4696,13 +4696,13 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
var Ready = __webpack_require__(1);
var NativeBridge = function (_Ready) {
_inherits(NativeBridge, _Ready);
var OSSettingBridge = function (_Ready) {
_inherits(OSSettingBridge, _Ready);
function NativeBridge() {
_classCallCheck(this, NativeBridge);
function OSSettingBridge() {
_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 () {
_this.onPlusready();
......@@ -4711,35 +4711,35 @@ var NativeBridge = function (_Ready) {
return _this;
}
_createClass(NativeBridge, [{
_createClass(OSSettingBridge, [{
key: 'onPlusready',
value: function onPlusready() {
var _NATIVECODE = 'UgenNative',
B = window.plus.bridge,
callbackID = void 0;
var UgenNative = {
var OSSetting = {
//判断通知是否开启
isNotifycationOpen: function isNotifycationOpen() {
return B.execSync(_NATIVECODE, "isNotifycationOpen", []);
},
//跳转到通知设置界面
toNotifycationSetting: function toNotifycationSetting() {
return B.execSync(_NATIVECODE, "toNotifycationSetting", []);
toSetting: function toSetting(type) {
return B.execSync(_NATIVECODE, "toSetting", [type]);
}
};
this.UgenNative = UgenNative;
this.OSSetting = OSSetting;
}
}, {
key: 'onReady',
value: function onReady() {
return this.UgenNative;
return this.OSSetting;
}
}]);
return NativeBridge;
return OSSettingBridge;
}(Ready);
module.exports = NativeBridge;
module.exports = OSSettingBridge;
/***/ }),
/* 43 */
......@@ -4811,12 +4811,12 @@ var Bridge = __webpack_require__(42);
/**
* @class
* BLE
* OSSetting
*/
var NativeMethod = function () {
function NativeMethod() {
_classCallCheck(this, NativeMethod);
var OSSettingMethod = function () {
function OSSettingMethod() {
_classCallCheck(this, OSSettingMethod);
this.map = [];
this.bridge = new Bridge();
......@@ -4828,28 +4828,28 @@ var NativeMethod = function () {
*/
_createClass(NativeMethod, [{
key: 'isNotifycationOpen',
_createClass(OSSettingMethod, [{
key: "isNotifycationOpen",
value: function isNotifycationOpen() {
return this.bridge.obj.isNotifycationOpen();
}
/**
* 跳转到通知设置界面
* @example iot.native.toNotifycationSetting
* @example iot.native.toSetting
*/
}, {
key: 'toNotifycationSetting',
key: "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 */
......
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