提交 4d0dde01 编写于 作者: fxy060608's avatar fxy060608

update modules

上级 0a23d711
......@@ -2,6 +2,7 @@ module.exports = {
base: {
title: '基础',
api: [
'upx2px',
'base64ToArrayBuffer',
'arrayBufferToBase64'
]
......@@ -9,31 +10,41 @@ module.exports = {
network: {
title: '网络',
api: [
'request'
'connectSocket'
'sendSocketMessage'
'closeSocket'
'onSocketOpen'
'onSocketError'
'onSocketMessage'
'onSocketClose'
'downloadFile'
'request',
'connectSocket',
'sendSocketMessage',
'closeSocket',
'onSocketOpen',
'onSocketError',
'onSocketMessage',
'onSocketClose',
'downloadFile',
'uploadFile'
]
},
route: {
title: '路由',
api: [
'navigateTo',
'redirectTo',
'reLaunch',
'switchTab',
'navigateBack'
]
},
storage: {
title: '数据缓存',
api: [
'setStorage'
'setStorageSync'
'getStorage'
'getStorageSync'
'removeStorage'
'removeStorageSync'
'clearStorage'
'clearStorageSync'
'getStorageInfo'
'getStorageInfoSync'
'setStorage',
'setStorageSync',
'getStorage',
'getStorageSync',
'removeStorage',
'removeStorageSync',
'clearStorage',
'clearStorageSync',
'getStorageInfo',
'getStorageInfoSync',
]
},
location: {
......@@ -61,5 +72,143 @@ module.exports = {
'createCameraContext',
'createLivePlayerContext'
]
},
device: {
title: '设备',
api: [
'getSystemInfo',
'getSystemInfoSync',
'canIUse',
'onMemoryWarning',
'getNetworkType',
'onNetworkStatusChange',
'onAccelerometerChange',
'startAccelerometer',
'stopAccelerometer',
'onCompassChange',
'startCompass',
'stopCompass',
'onGyroscopeChange',
'startGyroscope',
'stopGyroscope',
'makePhoneCall',
'scanCode',
'setClipboardData',
'getClipboardData',
'setScreenBrightness',
'getScreenBrightness',
'setKeepScreenOn',
'onUserCaptureScreen',
'vibrateLong',
'vibrateShort',
'addPhoneContact',
'openBluetoothAdapter',
'startBluetoothDevicesDiscovery',
'onBluetoothDeviceFound',
'stopBluetoothDevicesDiscovery',
'onBluetoothAdapterStateChange',
'getConnectedBluetoothDevices',
'getBluetoothDevices',
'getBluetoothAdapterState',
'closeBluetoothAdapter',
'writeBLECharacteristicValue',
'readBLECharacteristicValue',
'onBLEConnectionStateChange',
'onBLECharacteristicValueChange',
'notifyBLECharacteristicValueChange',
'getBLEDeviceServices',
'getBLEDeviceCharacteristics',
'createBLEConnection',
'closeBLEConnection',
'onBeaconServiceChange',
'onBeaconUpdate',
'getBeacons',
'startBeaconDiscovery',
'stopBeaconDiscovery'
]
},
ui: {
title: '界面',
api: [
'showToast',
'hideToast',
'showLoading',
'hideLoading',
'showModal',
'showActionSheet',
'setNavigationBarTitle',
'setNavigationBarColor',
'showNavigationBarLoading',
'hideNavigationBarLoading',
'setTabBarItem',
'setTabBarStyle',
'hideTabBar',
'showTabBar',
'setTabBarBadge',
'removeTabBarBadge',
'showTabBarRedDot',
'hideTabBarRedDot',
'setBackgroundColor',
'setBackgroundTextStyle',
'createAnimation',
'pageScrollTo',
'onWindowResize',
'offWindowResize',
'loadFontFace',
'startPullDownRefresh',
'stopPullDownRefresh',
'createSelectorQuery',
'createIntersectionObserver',
'hideKeyboard'
]
},
event: {
title: '页面通讯',
api: [
'$emit',
'$on',
'$once',
'$off'
]
},
file: {
title: '文件',
api: [
'saveFile',
'getSavedFileList',
'getSavedFileInfo',
'removeSavedFile',
'getFileInfo',
'openDocument',
'getFileSystemManager'
]
},
canvas: {
title: '绘画',
api: [
'createOffscreenCanvas',
'createCanvasContext',
'canvasToTempFilePath',
'canvasPutImageData',
'canvasGetImageData'
]
},
third: {
title: '第三方服务',
api: [
'getProvider',
'login',
'checkSession',
'getUserInfo',
'share',
'showShareMenu',
'hideShareMenu',
'requestPayment',
'subscribePush',
'unsubscribePush',
'onPush',
'offPush',
'requireNativePlugin'
]
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册