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

update modules

上级 0a23d711
...@@ -2,6 +2,7 @@ module.exports = { ...@@ -2,6 +2,7 @@ module.exports = {
base: { base: {
title: '基础', title: '基础',
api: [ api: [
'upx2px',
'base64ToArrayBuffer', 'base64ToArrayBuffer',
'arrayBufferToBase64' 'arrayBufferToBase64'
] ]
...@@ -9,31 +10,41 @@ module.exports = { ...@@ -9,31 +10,41 @@ module.exports = {
network: { network: {
title: '网络', title: '网络',
api: [ api: [
'request' 'request',
'connectSocket' 'connectSocket',
'sendSocketMessage' 'sendSocketMessage',
'closeSocket' 'closeSocket',
'onSocketOpen' 'onSocketOpen',
'onSocketError' 'onSocketError',
'onSocketMessage' 'onSocketMessage',
'onSocketClose' 'onSocketClose',
'downloadFile' 'downloadFile',
'uploadFile' 'uploadFile'
] ]
}, },
route: {
title: '路由',
api: [
'navigateTo',
'redirectTo',
'reLaunch',
'switchTab',
'navigateBack'
]
},
storage: { storage: {
title: '数据缓存', title: '数据缓存',
api: [ api: [
'setStorage' 'setStorage',
'setStorageSync' 'setStorageSync',
'getStorage' 'getStorage',
'getStorageSync' 'getStorageSync',
'removeStorage' 'removeStorage',
'removeStorageSync' 'removeStorageSync',
'clearStorage' 'clearStorage',
'clearStorageSync' 'clearStorageSync',
'getStorageInfo' 'getStorageInfo',
'getStorageInfoSync' 'getStorageInfoSync',
] ]
}, },
location: { location: {
...@@ -61,5 +72,143 @@ module.exports = { ...@@ -61,5 +72,143 @@ module.exports = {
'createCameraContext', 'createCameraContext',
'createLivePlayerContext' '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.
先完成此消息的编辑!
想要评论请 注册