Skip to content

Commit

Permalink
update modules
Browse files Browse the repository at this point in the history
  • Loading branch information
fxy060608 committed Jul 31, 2019
1 parent 0a23d71 commit 4d0dde0
Showing 1 changed file with 168 additions and 19 deletions.
187 changes: 168 additions & 19 deletions lib/modules.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,38 +2,49 @@ module.exports = {
base: {
title: '基础',
api: [
'upx2px',
'base64ToArrayBuffer',
'arrayBufferToBase64'
]
},
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: {
Expand Down Expand Up @@ -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'
]
}
}

0 comments on commit 4d0dde0

Please sign in to comment.