From eff8f3d2d8eb2d2267d1e8e1ae10579aa75e31e8 Mon Sep 17 00:00:00 2001 From: xiaoyucoding Date: Thu, 17 Jan 2019 19:25:33 +0800 Subject: [PATCH] modify: mp-baidu API --- .../mp-baidu/service/api/protocols.js | 29 ++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/src/platforms/mp-baidu/service/api/protocols.js b/src/platforms/mp-baidu/service/api/protocols.js index 8c3ef5b99..b1010a215 100644 --- a/src/platforms/mp-baidu/service/api/protocols.js +++ b/src/platforms/mp-baidu/service/api/protocols.js @@ -1,6 +1,33 @@ // 不支持的 API 列表 const TODOS = [ - 'hideKeyboard' + 'hideKeyboard', + 'onGyroscopeChange', + 'startGyroscope', + 'stopGyroscope', + 'openBluetoothAdapter', + 'startBluetoothDevicesDiscovery', + 'onBluetoothDeviceFound', + 'stopBluetoothDevicesDiscovery', + 'onBluetoothAdapterStateChange', + 'getConnectedBluetoothDevices', + 'getBluetoothDevices', + 'getBluetoothAdapterState', + 'closeBluetoothAdapter', + 'writeBLECharacteristicValue', + 'readBLECharacteristicValue', + 'onBLEConnectionStateChange', + 'onBLECharacteristicValueChange', + 'notifyBLECharacteristicValueChange', + 'getBLEDeviceServices', + 'getBLEDeviceCharacteristics', + 'createBLEConnection', + 'closeBLEConnection', + 'onBeaconServiceChange', + 'onBeaconUpdate', + 'getBeacons', + 'startBeaconDiscovery', + 'stopBeaconDiscovery', + 'hideShareMenu' ] function createTodoMethod (contextName, methodName) { -- GitLab