支付宝兼容矩阵 · 设备
设备
addPhoneCalendar
unsupported添加日历事件。
支付宝目标方法
addPhoneCalendar
策略说明
- 微信:直连 `wx.addPhoneCalendar`
- 支付宝:无同等 API,调用时按 unsupported 报错
addPhoneContact
mapped添加手机联系人。
支付宝目标方法
addPhoneContact
策略说明
- 微信:直连 `wx.addPhoneContact`
- 支付宝:直连 `my.addPhoneContact`
addPhoneRepeatCalendar
unsupported添加重复日历事件。
支付宝目标方法
addPhoneRepeatCalendar
策略说明
- 微信:直连 `wx.addPhoneRepeatCalendar`
- 支付宝:无同等 API,调用时按 unsupported 报错
checkIsOpenAccessibility
unsupported检测系统无障碍是否开启。
支付宝目标方法
checkIsOpenAccessibility
策略说明
- 微信:直连 `wx.checkIsOpenAccessibility`
- 支付宝:无同等 API,调用时按 unsupported 报错
chooseContact
native支付宝目标方法
chooseContact
策略说明
- 微信:直连 `wx.chooseContact`
- 支付宝:直连 `my.chooseContact`
closeBLEConnection
mapped断开低功耗蓝牙连接。
支付宝目标方法
disconnectBLEDevice
策略说明
- 微信:直连 `wx.closeBLEConnection`
- 支付宝:`deviceId` 对齐后映射到 `my.disconnectBLEDevice`,并将 `errorCode/errorMessage` 映射为 `errCode/errMsg`
closeBluetoothAdapter
native支付宝目标方法
closeBluetoothAdapter
策略说明
- 微信:直连 `wx.closeBluetoothAdapter`
- 支付宝:直连 `my.closeBluetoothAdapter`
createBLEConnection
mapped创建低功耗蓝牙连接。
支付宝目标方法
connectBLEDevice
策略说明
- 微信:直连 `wx.createBLEConnection`
- 支付宝:`deviceId/timeout` 对齐后映射到 `my.connectBLEDevice`,并将 `error/errorMessage` 映射为 `errCode/errMsg`
createBLEPeripheralServer
unsupported创建 BLE 外设服务实例。
支付宝目标方法
createBLEPeripheralServer
策略说明
- 微信:直连 `wx.createBLEPeripheralServer`
- 支付宝:无同等 API,调用时按 unsupported 报错
getBatteryInfo
mapped异步获取电量信息。
支付宝目标方法
getBatteryInfo
策略说明
- 微信:直连 `wx.getBatteryInfo`
- 支付宝:直连 `my.getBatteryInfo`
getBatteryInfoSync
mapped同步获取电量信息。
支付宝目标方法
getBatteryInfoSync
策略说明
- 微信:直连 `wx.getBatteryInfoSync`
- 支付宝:直连 `my.getBatteryInfoSync`
getBLEDeviceCharacteristics
native支付宝目标方法
getBLEDeviceCharacteristics
策略说明
- 微信:直连 `wx.getBLEDeviceCharacteristics`
- 支付宝:直连 `my.getBLEDeviceCharacteristics`
getBLEDeviceRSSI
native支付宝目标方法
getBLEDeviceRSSI
策略说明
- 微信:直连 `wx.getBLEDeviceRSSI`
- 支付宝:直连 `my.getBLEDeviceRSSI`
getBLEDeviceServices
native支付宝目标方法
getBLEDeviceServices
策略说明
- 微信:直连 `wx.getBLEDeviceServices`
- 支付宝:直连 `my.getBLEDeviceServices`
getBluetoothAdapterState
native支付宝目标方法
getBluetoothAdapterState
策略说明
- 微信:直连 `wx.getBluetoothAdapterState`
- 支付宝:直连 `my.getBluetoothAdapterState`
getBluetoothDevices
native支付宝目标方法
getBluetoothDevices
策略说明
- 微信:直连 `wx.getBluetoothDevices`
- 支付宝:直连 `my.getBluetoothDevices`
getClipboardData
mapped获取剪贴板内容。
支付宝目标方法
getClipboard
策略说明
- 微信:直连 `wx.getClipboardData`
- 支付宝:转调 `my.getClipboard` 并映射 `text` → `data`
getConnectedBluetoothDevices
native支付宝目标方法
getConnectedBluetoothDevices
策略说明
- 微信:直连 `wx.getConnectedBluetoothDevices`
- 支付宝:直连 `my.getConnectedBluetoothDevices`
getConnectedWifi
native支付宝目标方法
getConnectedWifi
策略说明
- 微信:直连 `wx.getConnectedWifi`
- 支付宝:直连 `my.getConnectedWifi`
getHCEState
unsupported获取 HCE 状态。
支付宝目标方法
getHCEState
策略说明
- 微信:直连 `wx.getHCEState`
- 支付宝:无同等 API,调用时按 unsupported 报错
getLocalIPAddress
native支付宝目标方法
getLocalIPAddress
策略说明
- 微信:直连 `wx.getLocalIPAddress`
- 支付宝:直连 `my.getLocalIPAddress`
getNetworkType
mapped获取网络类型。
支付宝目标方法
getNetworkType
策略说明
- 微信:直连 `wx.getNetworkType`
- 支付宝:直连 `my.getNetworkType`
getNFCAdapter
unsupported获取 NFC 适配器。
支付宝目标方法
getNFCAdapter
策略说明
- 微信:直连 `wx.getNFCAdapter`
- 支付宝:无同等 API,调用时按 unsupported 报错
getRandomValues
unsupported获取随机值。
支付宝目标方法
getRandomValues
策略说明
- 微信:直连 `wx.getRandomValues`
- 支付宝:无同等 API,调用时按 unsupported 报错
getScreenBrightness
native支付宝目标方法
getScreenBrightness
策略说明
- 微信:直连 `wx.getScreenBrightness`
- 支付宝:直连 `my.getScreenBrightness`
getScreenRecordingState
unsupported获取录屏状态。
支付宝目标方法
getScreenRecordingState
策略说明
- 微信:直连 `wx.getScreenRecordingState`
- 支付宝:无同等 API,调用时按 unsupported 报错
isBluetoothDevicePaired
unsupported判断蓝牙设备是否已配对。
支付宝目标方法
isBluetoothDevicePaired
策略说明
- 微信:直连 `wx.isBluetoothDevicePaired`
- 支付宝:无同等 API,调用时按 unsupported 报错
makeBluetoothPair
native支付宝目标方法
makeBluetoothPair
策略说明
- 微信:直连 `wx.makeBluetoothPair`
- 支付宝:直连 `my.makeBluetoothPair`
makePhoneCall
native支付宝目标方法
makePhoneCall
策略说明
- 微信:直连 `wx.makePhoneCall`
- 支付宝:直连 `my.makePhoneCall`
notifyBLECharacteristicValueChange
native支付宝目标方法
notifyBLECharacteristicValueChange
策略说明
- 微信:直连 `wx.notifyBLECharacteristicValueChange`
- 支付宝:直连 `my.notifyBLECharacteristicValueChange`
offAccelerometerChange
native支付宝目标方法
offAccelerometerChange
策略说明
- 微信:直连 `wx.offAccelerometerChange`
- 支付宝:直连 `my.offAccelerometerChange`
offBatteryInfoChange
unsupported支付宝目标方法
offBatteryInfoChange
策略说明
- 微信:直连 `wx.offBatteryInfoChange`
- 支付宝:未提供 my.offBatteryInfoChange,调用时将返回 not supported
offBeaconServiceChange
native支付宝目标方法
offBeaconServiceChange
策略说明
- 微信:直连 `wx.offBeaconServiceChange`
- 支付宝:直连 `my.offBeaconServiceChange`
offBeaconUpdate
native支付宝目标方法
offBeaconUpdate
策略说明
- 微信:直连 `wx.offBeaconUpdate`
- 支付宝:直连 `my.offBeaconUpdate`
offBLECharacteristicValueChange
native支付宝目标方法
offBLECharacteristicValueChange
策略说明
- 微信:直连 `wx.offBLECharacteristicValueChange`
- 支付宝:直连 `my.offBLECharacteristicValueChange`
offBLEConnectionStateChange
mapped取消监听 BLE 连接状态变化。
支付宝目标方法
offBLEConnectionStateChanged
策略说明
- 微信:直连 `wx.offBLEConnectionStateChange`
- 支付宝:映射到 `my.offBLEConnectionStateChanged`
offBLEMTUChange
unsupported支付宝目标方法
offBLEMTUChange
策略说明
- 微信:直连 `wx.offBLEMTUChange`
- 支付宝:未提供 my.offBLEMTUChange,调用时将返回 not supported
offBLEPeripheralConnectionStateChanged
unsupported支付宝目标方法
offBLEPeripheralConnectionStateChanged
策略说明
- 微信:直连 `wx.offBLEPeripheralConnectionStateChanged`
- 支付宝:未提供 my.offBLEPeripheralConnectionStateChanged,调用时将返回 not supported
offBluetoothAdapterStateChange
native支付宝目标方法
offBluetoothAdapterStateChange
策略说明
- 微信:直连 `wx.offBluetoothAdapterStateChange`
- 支付宝:直连 `my.offBluetoothAdapterStateChange`
offBluetoothDeviceFound
native支付宝目标方法
offBluetoothDeviceFound
策略说明
- 微信:直连 `wx.offBluetoothDeviceFound`
- 支付宝:直连 `my.offBluetoothDeviceFound`
offCompassChange
native支付宝目标方法
offCompassChange
策略说明
- 微信:直连 `wx.offCompassChange`
- 支付宝:直连 `my.offCompassChange`
offDeviceMotionChange
native支付宝目标方法
offDeviceMotionChange
策略说明
- 微信:直连 `wx.offDeviceMotionChange`
- 支付宝:直连 `my.offDeviceMotionChange`
offGetWifiList
native支付宝目标方法
offGetWifiList
策略说明
- 微信:直连 `wx.offGetWifiList`
- 支付宝:直连 `my.offGetWifiList`
offGyroscopeChange
native支付宝目标方法
offGyroscopeChange
策略说明
- 微信:直连 `wx.offGyroscopeChange`
- 支付宝:直连 `my.offGyroscopeChange`
offHCEMessage
unsupported支付宝目标方法
offHCEMessage
策略说明
- 微信:直连 `wx.offHCEMessage`
- 支付宝:未提供 my.offHCEMessage,调用时将返回 not supported
offKeyboardHeightChange
unsupported支付宝目标方法
offKeyboardHeightChange
策略说明
- 微信:直连 `wx.offKeyboardHeightChange`
- 支付宝:未提供 my.offKeyboardHeightChange,调用时将返回 not supported
offMemoryWarning
mapped取消内存不足告警监听。
支付宝目标方法
offMemoryWarning
策略说明
- 微信:直连 `wx.offMemoryWarning`
- 支付宝:直连 `my.offMemoryWarning`
offScreenRecordingStateChanged
unsupported支付宝目标方法
offScreenRecordingStateChanged
策略说明
- 微信:直连 `wx.offScreenRecordingStateChanged`
- 支付宝:未提供 my.offScreenRecordingStateChanged,调用时将返回 not supported
offUserCaptureScreen
native支付宝目标方法
offUserCaptureScreen
策略说明
- 微信:直连 `wx.offUserCaptureScreen`
- 支付宝:直连 `my.offUserCaptureScreen`
offWifiConnected
native支付宝目标方法
offWifiConnected
策略说明
- 微信:直连 `wx.offWifiConnected`
- 支付宝:直连 `my.offWifiConnected`
offWifiConnectedWithPartialInfo
unsupported支付宝目标方法
offWifiConnectedWithPartialInfo
策略说明
- 微信:直连 `wx.offWifiConnectedWithPartialInfo`
- 支付宝:未提供 my.offWifiConnectedWithPartialInfo,调用时将返回 not supported
onAccelerometerChange
native支付宝目标方法
onAccelerometerChange
策略说明
- 微信:直连 `wx.onAccelerometerChange`
- 支付宝:直连 `my.onAccelerometerChange`
onBatteryInfoChange
unsupported支付宝目标方法
onBatteryInfoChange
策略说明
- 微信:直连 `wx.onBatteryInfoChange`
- 支付宝:未提供 my.onBatteryInfoChange,调用时将返回 not supported
onBeaconServiceChange
native支付宝目标方法
onBeaconServiceChange
策略说明
- 微信:直连 `wx.onBeaconServiceChange`
- 支付宝:直连 `my.onBeaconServiceChange`
onBeaconUpdate
native支付宝目标方法
onBeaconUpdate
策略说明
- 微信:直连 `wx.onBeaconUpdate`
- 支付宝:直连 `my.onBeaconUpdate`
onBLECharacteristicValueChange
native支付宝目标方法
onBLECharacteristicValueChange
策略说明
- 微信:直连 `wx.onBLECharacteristicValueChange`
- 支付宝:直连 `my.onBLECharacteristicValueChange`
onBLEConnectionStateChange
mapped监听 BLE 连接状态变化。
支付宝目标方法
onBLEConnectionStateChanged
策略说明
- 微信:直连 `wx.onBLEConnectionStateChange`
- 支付宝:映射到 `my.onBLEConnectionStateChanged`
onBLEMTUChange
unsupported支付宝目标方法
onBLEMTUChange
策略说明
- 微信:直连 `wx.onBLEMTUChange`
- 支付宝:未提供 my.onBLEMTUChange,调用时将返回 not supported
onBLEPeripheralConnectionStateChanged
unsupported支付宝目标方法
onBLEPeripheralConnectionStateChanged
策略说明
- 微信:直连 `wx.onBLEPeripheralConnectionStateChanged`
- 支付宝:未提供 my.onBLEPeripheralConnectionStateChanged,调用时将返回 not supported
onBluetoothAdapterStateChange
native支付宝目标方法
onBluetoothAdapterStateChange
策略说明
- 微信:直连 `wx.onBluetoothAdapterStateChange`
- 支付宝:直连 `my.onBluetoothAdapterStateChange`
onBluetoothDeviceFound
native支付宝目标方法
onBluetoothDeviceFound
策略说明
- 微信:直连 `wx.onBluetoothDeviceFound`
- 支付宝:直连 `my.onBluetoothDeviceFound`
onCompassChange
native支付宝目标方法
onCompassChange
策略说明
- 微信:直连 `wx.onCompassChange`
- 支付宝:直连 `my.onCompassChange`
onDeviceMotionChange
native支付宝目标方法
onDeviceMotionChange
策略说明
- 微信:直连 `wx.onDeviceMotionChange`
- 支付宝:直连 `my.onDeviceMotionChange`
onGetWifiList
native支付宝目标方法
onGetWifiList
策略说明
- 微信:直连 `wx.onGetWifiList`
- 支付宝:直连 `my.onGetWifiList`
onGyroscopeChange
native支付宝目标方法
onGyroscopeChange
策略说明
- 微信:直连 `wx.onGyroscopeChange`
- 支付宝:直连 `my.onGyroscopeChange`
onHCEMessage
unsupported支付宝目标方法
onHCEMessage
策略说明
- 微信:直连 `wx.onHCEMessage`
- 支付宝:未提供 my.onHCEMessage,调用时将返回 not supported
onKeyboardHeightChange
unsupported支付宝目标方法
onKeyboardHeightChange
策略说明
- 微信:直连 `wx.onKeyboardHeightChange`
- 支付宝:未提供 my.onKeyboardHeightChange,调用时将返回 not supported
onMemoryWarning
native支付宝目标方法
onMemoryWarning
策略说明
- 微信:直连 `wx.onMemoryWarning`
- 支付宝:直连 `my.onMemoryWarning`
onScreenRecordingStateChanged
unsupported支付宝目标方法
onScreenRecordingStateChanged
策略说明
- 微信:直连 `wx.onScreenRecordingStateChanged`
- 支付宝:未提供 my.onScreenRecordingStateChanged,调用时将返回 not supported
onUserCaptureScreen
native支付宝目标方法
onUserCaptureScreen
策略说明
- 微信:直连 `wx.onUserCaptureScreen`
- 支付宝:直连 `my.onUserCaptureScreen`
onWifiConnected
native支付宝目标方法
onWifiConnected
策略说明
- 微信:直连 `wx.onWifiConnected`
- 支付宝:直连 `my.onWifiConnected`
onWifiConnectedWithPartialInfo
unsupported支付宝目标方法
onWifiConnectedWithPartialInfo
策略说明
- 微信:直连 `wx.onWifiConnectedWithPartialInfo`
- 支付宝:未提供 my.onWifiConnectedWithPartialInfo,调用时将返回 not supported
openBluetoothAdapter
native支付宝目标方法
openBluetoothAdapter
策略说明
- 微信:直连 `wx.openBluetoothAdapter`
- 支付宝:直连 `my.openBluetoothAdapter`
openSystemBluetoothSetting
unsupported打开系统蓝牙设置页面。
支付宝目标方法
openSystemBluetoothSetting
策略说明
- 微信:直连 `wx.openSystemBluetoothSetting`
- 支付宝:无同等 API,调用时按 unsupported 报错
readBLECharacteristicValue
native支付宝目标方法
readBLECharacteristicValue
策略说明
- 微信:直连 `wx.readBLECharacteristicValue`
- 支付宝:直连 `my.readBLECharacteristicValue`
scanCode
unsupported扫码。
支付宝目标方法
scanCode
策略说明
- 微信:直连 `wx.scanCode`
- 支付宝:无同等 API,调用时按 unsupported 报错
sendSms
unsupported发送短信。
支付宝目标方法
sendSms
策略说明
- 微信:直连 `wx.sendSms`
- 支付宝:无同等 API,调用时按 unsupported 报错
setClipboardData
mapped设置剪贴板内容。
支付宝目标方法
setClipboard
策略说明
- 微信:直连 `wx.setClipboardData`
- 支付宝:转调 `my.setClipboard` 并映射 `data` → `text`
setKeepScreenOn
native支付宝目标方法
setKeepScreenOn
策略说明
- 微信:直连 `wx.setKeepScreenOn`
- 支付宝:直连 `my.setKeepScreenOn`
setScreenBrightness
native支付宝目标方法
setScreenBrightness
策略说明
- 微信:直连 `wx.setScreenBrightness`
- 支付宝:直连 `my.setScreenBrightness`
startAccelerometer
native支付宝目标方法
startAccelerometer
策略说明
- 微信:直连 `wx.startAccelerometer`
- 支付宝:直连 `my.startAccelerometer`
startBeaconDiscovery
native支付宝目标方法
startBeaconDiscovery
策略说明
- 微信:直连 `wx.startBeaconDiscovery`
- 支付宝:直连 `my.startBeaconDiscovery`
startBluetoothDevicesDiscovery
native支付宝目标方法
startBluetoothDevicesDiscovery
策略说明
- 微信:直连 `wx.startBluetoothDevicesDiscovery`
- 支付宝:直连 `my.startBluetoothDevicesDiscovery`
startDeviceMotionListening
unsupported开始监听设备方向变化。
支付宝目标方法
startDeviceMotionListening
策略说明
- 微信:直连 `wx.startDeviceMotionListening`
- 支付宝:无同等 API,调用时按 unsupported 报错
startGyroscope
native支付宝目标方法
startGyroscope
策略说明
- 微信:直连 `wx.startGyroscope`
- 支付宝:直连 `my.startGyroscope`
startHCE
unsupported启动 HCE 功能。
支付宝目标方法
startHCE
策略说明
- 微信:直连 `wx.startHCE`
- 支付宝:无同等 API,调用时按 unsupported 报错
stopAccelerometer
native支付宝目标方法
stopAccelerometer
策略说明
- 微信:直连 `wx.stopAccelerometer`
- 支付宝:直连 `my.stopAccelerometer`
stopBeaconDiscovery
native支付宝目标方法
stopBeaconDiscovery
策略说明
- 微信:直连 `wx.stopBeaconDiscovery`
- 支付宝:直连 `my.stopBeaconDiscovery`
stopBluetoothDevicesDiscovery
native支付宝目标方法
stopBluetoothDevicesDiscovery
策略说明
- 微信:直连 `wx.stopBluetoothDevicesDiscovery`
- 支付宝:直连 `my.stopBluetoothDevicesDiscovery`
stopDeviceMotionListening
unsupported停止监听设备方向变化。
支付宝目标方法
stopDeviceMotionListening
策略说明
- 微信:直连 `wx.stopDeviceMotionListening`
- 支付宝:无同等 API,调用时按 unsupported 报错
stopGyroscope
native支付宝目标方法
stopGyroscope
策略说明
- 微信:直连 `wx.stopGyroscope`
- 支付宝:直连 `my.stopGyroscope`
stopHCE
unsupported停止 HCE 功能。
支付宝目标方法
stopHCE
策略说明
- 微信:直连 `wx.stopHCE`
- 支付宝:无同等 API,调用时按 unsupported 报错
writeBLECharacteristicValue
native支付宝目标方法
writeBLECharacteristicValue
策略说明
- 微信:直连 `wx.writeBLECharacteristicValue`
- 支付宝:直连 `my.writeBLECharacteristicValue`