Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

Commit

Permalink
fix(wechat): 修复未导出 API (#1403)
Browse files Browse the repository at this point in the history
offBeaconUpdate
offBeaconServiceChange
offWifiConnected
offGetWifiList
offBLEConnectionStateChange
offBLECharacteristicValueChange
offBluetoothDeviceFound
offBluetoothAdapterStateChange
offHCEMessage
offNetworkStatusChange
offUserCaptureScreen
offAccelerometerChange
offCompassChange
offDeviceMotionChange
offGyroscopeChange
offMemoryWarning
  • Loading branch information
dominicleo committed Dec 4, 2020
1 parent 263cf0a commit 4b5247f
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions packages/remax-wechat/src/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,21 +171,27 @@ export const getWeRunData = promisify(wx.getWeRunData);
export const stopBeaconDiscovery = promisify(wx.stopBeaconDiscovery);
export const startBeaconDiscovery = promisify(wx.startBeaconDiscovery);
export const onBeaconUpdate = wx.onBeaconUpdate;
export const offBeaconUpdate = wx.offBeaconUpdate;
export const onBeaconServiceChange = wx.onBeaconServiceChange;
export const offBeaconServiceChange = wx.offBeaconServiceChange;
export const getBeacons = promisify(wx.getBeacons);
export const stopWifi = promisify(wx.stopWifi);
export const startWifi = promisify(wx.startWifi);
export const setWifiList = promisify(wx.setWifiList);
export const onWifiConnected = wx.onWifiConnected;
export const offWifiConnected = wx.offWifiConnected;
export const onGetWifiList = wx.onGetWifiList;
export const offGetWifiList = wx.offGetWifiList;
export const getWifiList = promisify(wx.getWifiList);
export const getConnectedWifi = promisify(wx.getConnectedWifi);
export const connectWifi = promisify(wx.connectWifi);
export const addPhoneContact = promisify(wx.addPhoneContact);
export const writeBLECharacteristicValue = promisify(wx.writeBLECharacteristicValue);
export const readBLECharacteristicValue = promisify(wx.readBLECharacteristicValue);
export const onBLEConnectionStateChange = wx.onBLEConnectionStateChange;
export const offBLEConnectionStateChange = wx.offBLEConnectionStateChange;
export const onBLECharacteristicValueChange = wx.onBLECharacteristicValueChange;
export const offBLECharacteristicValueChange = wx.offBLECharacteristicValueChange;
export const notifyBLECharacteristicValueChange = promisify(wx.notifyBLECharacteristicValueChange);
export const getBLEDeviceServices = promisify(wx.getBLEDeviceServices);
export const getBLEDeviceCharacteristics = promisify(wx.getBLEDeviceCharacteristics);
Expand All @@ -195,7 +201,9 @@ export const stopBluetoothDevicesDiscovery = promisify(wx.stopBluetoothDevicesDi
export const startBluetoothDevicesDiscovery = promisify(wx.startBluetoothDevicesDiscovery);
export const openBluetoothAdapter = wx.openBluetoothAdapter;
export const onBluetoothDeviceFound = wx.onBluetoothDeviceFound;
export const offBluetoothDeviceFound = wx.offBluetoothDeviceFound;
export const onBluetoothAdapterStateChange = wx.onBluetoothAdapterStateChange;
export const offBluetoothAdapterStateChange = wx.offBluetoothAdapterStateChange;
export const getConnectedBluetoothDevices = promisify(wx.getConnectedBluetoothDevices);
export const getBluetoothDevices = promisify(wx.getBluetoothDevices);
export const getBluetoothAdapterState = promisify(wx.getBluetoothAdapterState);
Expand All @@ -208,27 +216,35 @@ export const stopHCE = promisify(wx.stopHCE);
export const startHCE = promisify(wx.startHCE);
export const sendHCEMessage = promisify(wx.sendHCEMessage);
export const onHCEMessage = wx.onHCEMessage;
export const offHCEMessage = wx.offHCEMessage;
export const getHCEState = promisify(wx.getHCEState);
export const onNetworkStatusChange = wx.onNetworkStatusChange;
export const offNetworkStatusChange = wx.offNetworkStatusChange;
export const getNetworkType = promisify(wx.getNetworkType);
export const setScreenBrightness = promisify(wx.setScreenBrightness);
export const setKeepScreenOn = promisify(wx.setKeepScreenOn);
export const onUserCaptureScreen = wx.onUserCaptureScreen;
export const offUserCaptureScreen = wx.offUserCaptureScreen;
export const getScreenBrightness = promisify(wx.getScreenBrightness);
export const makePhoneCall = promisify(wx.makePhoneCall);
export const stopAccelerometer = promisify(wx.stopAccelerometer);
export const startAccelerometer = promisify(wx.startAccelerometer);
export const onAccelerometerChange = wx.onAccelerometerChange;
export const offAccelerometerChange = wx.offAccelerometerChange;
export const stopCompass = promisify(wx.stopCompass);
export const startCompass = promisify(wx.startCompass);
export const onCompassChange = wx.onCompassChange;
export const offCompassChange = wx.offCompassChange;
export const stopDeviceMotionListening = promisify(wx.stopDeviceMotionListening);
export const startDeviceMotionListening = promisify(wx.startDeviceMotionListening);
export const onDeviceMotionChange = wx.onDeviceMotionChange;
export const offDeviceMotionChange = wx.offDeviceMotionChange;
export const stopGyroscope = promisify(wx.stopGyroscope);
export const startGyroscope = promisify(wx.startGyroscope);
export const onGyroscopeChange = wx.onGyroscopeChange;
export const offGyroscopeChange = wx.offGyroscopeChange;
export const onMemoryWarning = wx.onMemoryWarning;
export const offMemoryWarning = wx.offMemoryWarning;
export const scanCode = promisify(wx.scanCode);
export const vibrateShort = promisify(wx.vibrateShort);
export const vibrateLong = promisify(wx.vibrateLong);
Expand Down

1 comment on commit 4b5247f

@vercel
Copy link

@vercel vercel bot commented on 4b5247f Dec 4, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.