| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232 |
- const base = [
- 'base64ToArrayBuffer',
- 'arrayBufferToBase64',
- 'addInterceptor',
- 'removeInterceptor'
- ]
- const network = [
- 'request',
- 'uploadFile',
- 'downloadFile',
- 'connectSocket',
- 'onSocketOpen',
- 'onSocketError',
- 'sendSocketMessage',
- 'onSocketMessage',
- 'closeSocket',
- 'onSocketClose'
- ]
- const route = [
- 'navigateTo',
- 'redirectTo',
- 'reLaunch',
- 'switchTab',
- 'navigateBack'
- ]
- const storage = [
- 'setStorage',
- 'setStorageSync',
- 'getStorage',
- 'getStorageSync',
- 'getStorageInfo',
- 'getStorageInfoSync',
- 'removeStorage',
- 'removeStorageSync',
- 'clearStorage',
- 'clearStorageSync'
- ]
- const location = [
- 'getLocation',
- 'chooseLocation',
- 'openLocation',
- 'createMapContext'
- ]
- const media = [
- 'chooseImage',
- 'previewImage',
- 'getImageInfo',
- 'saveImageToPhotosAlbum',
- 'compressImage',
- 'getRecorderManager',
- 'getBackgroundAudioManager',
- 'createInnerAudioContext',
- 'chooseVideo',
- 'saveVideoToPhotosAlbum',
- 'createVideoContext',
- 'createCameraContext',
- 'createLivePlayerContext',
- 'createLivePusherContext'
- ]
- const device = [
- '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',
- 'checkIsSupportSoterAuthentication',
- 'checkIsSoterEnrolledInDevice',
- 'startSoterAuthentication',
- 'onUIStyleChange'
- ]
- const keyboard = [
- 'hideKeyboard',
- 'onKeyboardHeightChange'
- ]
- const ui = [
- 'showToast',
- 'hideToast',
- 'showLoading',
- 'hideLoading',
- 'showModal',
- 'showActionSheet',
- 'setNavigationBarTitle',
- 'setNavigationBarColor',
- 'showNavigationBarLoading',
- 'hideNavigationBarLoading',
- 'setTabBarItem',
- 'setTabBarStyle',
- 'hideTabBar',
- 'showTabBar',
- 'setTabBarBadge',
- 'removeTabBarBadge',
- 'showTabBarRedDot',
- 'hideTabBarRedDot',
- 'onTabBarMidButtonTap',
- 'setBackgroundColor',
- 'setBackgroundTextStyle',
- 'createAnimation',
- 'pageScrollTo',
- 'onWindowResize',
- 'offWindowResize',
- 'loadFontFace',
- 'startPullDownRefresh',
- 'stopPullDownRefresh',
- 'createSelectorQuery',
- 'createIntersectionObserver',
- 'getMenuButtonBoundingClientRect'
- ]
- const event = [
- '$emit',
- '$on',
- '$once',
- '$off'
- ]
- const file = [
- 'saveFile',
- 'getSavedFileList',
- 'getSavedFileInfo',
- 'removeSavedFile',
- 'getFileInfo',
- 'openDocument',
- 'getFileSystemManager'
- ]
- const canvas = [
- 'createOffscreenCanvas',
- 'createCanvasContext',
- 'canvasToTempFilePath',
- 'canvasPutImageData',
- 'canvasGetImageData'
- ]
- const third = [
- 'getProvider',
- 'login',
- 'checkSession',
- 'getUserInfo',
- 'share',
- 'shareWithSystem',
- 'showShareMenu',
- 'hideShareMenu',
- 'requestPayment',
- 'subscribePush',
- 'unsubscribePush',
- 'onPush',
- 'offPush',
- 'requireNativePlugin',
- 'upx2px',
- 'restoreGlobal',
- 'getSubNVueById',
- 'getCurrentSubNVue',
- 'setPageMeta',
- 'onNativeEventReceive',
- 'sendNativeEvent'
- ]
- const ad = [
- 'createRewardedVideoAd'
- ]
- const apis = [
- ...base,
- ...network,
- ...route,
- ...storage,
- ...location,
- ...media,
- ...device,
- ...keyboard,
- ...ui,
- ...event,
- ...file,
- ...canvas,
- ...third,
- ...ad
- ]
- module.exports = apis
|