提交 59f70c5f 编写于 作者: D DCloud_LXH

feat(app): openAppAuthorizeSetting

上级 6c1c35a3
......@@ -135,7 +135,8 @@ const device = [
'onThemeChange',
'onUIStyleChange',
'getSystemSetting',
'getAppAuthorizeSetting'
'getAppAuthorizeSetting',
'openAppAuthorizeSetting'
]
const keyboard = [
......@@ -269,7 +270,7 @@ const plugin = [
'invokePushCallback',
'getPushClientId',
'onPushMessage',
'offPushMessage',
'offPushMessage',
'createPushMessage'
]
......
import {
invoke
} from '../../bridge'
export function openAppAuthorizeSetting(options, callbackId) {
const { openAppAuthorizeSetting } = weex.requireModule('plus')
openAppAuthorizeSetting(ret => {
if (ret.type === 'success') {
invoke(callbackId, {
errMsg: 'getClipboardData:ok'
})
} else {
invoke(callbackId, {
errMsg: 'getClipboardData:fail'
})
}
})
}
......@@ -21,6 +21,7 @@ export * from './device/vibrate'
export * from './device/get-window-info'
export * from './device/get-system-setting'
export * from './device/get-app-authorize-setting'
export * from './device/open-app-authorize-setting'
export * from './file/file'
export * from './file/open-document'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册