Skip to content

支付宝兼容矩阵 · 设备

设备

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`

connectWifi

native

支付宝目标方法

connectWifi

策略说明

  • 微信:直连 `wx.connectWifi`
  • 支付宝:直连 `my.connectWifi`

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`

getBeacons

native

支付宝目标方法

getBeacons

策略说明

  • 微信:直连 `wx.getBeacons`
  • 支付宝:直连 `my.getBeacons`

getBLEDeviceCharacteristics

native

支付宝目标方法

getBLEDeviceCharacteristics

策略说明

  • 微信:直连 `wx.getBLEDeviceCharacteristics`
  • 支付宝:直连 `my.getBLEDeviceCharacteristics`

getBLEDeviceRSSI

native

支付宝目标方法

getBLEDeviceRSSI

策略说明

  • 微信:直连 `wx.getBLEDeviceRSSI`
  • 支付宝:直连 `my.getBLEDeviceRSSI`

getBLEDeviceServices

native

支付宝目标方法

getBLEDeviceServices

策略说明

  • 微信:直连 `wx.getBLEDeviceServices`
  • 支付宝:直连 `my.getBLEDeviceServices`

getBLEMTU

native

支付宝目标方法

getBLEMTU

策略说明

  • 微信:直连 `wx.getBLEMTU`
  • 支付宝:直连 `my.getBLEMTU`

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 报错

getWifiList

native

支付宝目标方法

getWifiList

策略说明

  • 微信:直连 `wx.getWifiList`
  • 支付宝:直连 `my.getWifiList`

hideKeyboard

native

支付宝目标方法

hideKeyboard

策略说明

  • 微信:直连 `wx.hideKeyboard`
  • 支付宝:直连 `my.hideKeyboard`

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 报错

setBLEMTU

native

支付宝目标方法

setBLEMTU

策略说明

  • 微信:直连 `wx.setBLEMTU`
  • 支付宝:直连 `my.setBLEMTU`

setClipboardData

mapped

设置剪贴板内容。

支付宝目标方法

setClipboard

策略说明

  • 微信:直连 `wx.setClipboardData`
  • 支付宝:转调 `my.setClipboard` 并映射 `data` → `text`

setKeepScreenOn

native

支付宝目标方法

setKeepScreenOn

策略说明

  • 微信:直连 `wx.setKeepScreenOn`
  • 支付宝:直连 `my.setKeepScreenOn`

setScreenBrightness

native

支付宝目标方法

setScreenBrightness

策略说明

  • 微信:直连 `wx.setScreenBrightness`
  • 支付宝:直连 `my.setScreenBrightness`

setWifiList

native

支付宝目标方法

setWifiList

策略说明

  • 微信:直连 `wx.setWifiList`
  • 支付宝:直连 `my.setWifiList`

startAccelerometer

native

支付宝目标方法

startAccelerometer

策略说明

  • 微信:直连 `wx.startAccelerometer`
  • 支付宝:直连 `my.startAccelerometer`

startBeaconDiscovery

native

支付宝目标方法

startBeaconDiscovery

策略说明

  • 微信:直连 `wx.startBeaconDiscovery`
  • 支付宝:直连 `my.startBeaconDiscovery`

startBluetoothDevicesDiscovery

native

支付宝目标方法

startBluetoothDevicesDiscovery

策略说明

  • 微信:直连 `wx.startBluetoothDevicesDiscovery`
  • 支付宝:直连 `my.startBluetoothDevicesDiscovery`

startCompass

native

支付宝目标方法

startCompass

策略说明

  • 微信:直连 `wx.startCompass`
  • 支付宝:直连 `my.startCompass`

startDeviceMotionListening

unsupported

开始监听设备方向变化。

支付宝目标方法

startDeviceMotionListening

策略说明

  • 微信:直连 `wx.startDeviceMotionListening`
  • 支付宝:无同等 API,调用时按 unsupported 报错

startGyroscope

native

支付宝目标方法

startGyroscope

策略说明

  • 微信:直连 `wx.startGyroscope`
  • 支付宝:直连 `my.startGyroscope`

startHCE

unsupported

启动 HCE 功能。

支付宝目标方法

startHCE

策略说明

  • 微信:直连 `wx.startHCE`
  • 支付宝:无同等 API,调用时按 unsupported 报错

startWifi

native

支付宝目标方法

startWifi

策略说明

  • 微信:直连 `wx.startWifi`
  • 支付宝:直连 `my.startWifi`

stopAccelerometer

native

支付宝目标方法

stopAccelerometer

策略说明

  • 微信:直连 `wx.stopAccelerometer`
  • 支付宝:直连 `my.stopAccelerometer`

stopBeaconDiscovery

native

支付宝目标方法

stopBeaconDiscovery

策略说明

  • 微信:直连 `wx.stopBeaconDiscovery`
  • 支付宝:直连 `my.stopBeaconDiscovery`

stopBluetoothDevicesDiscovery

native

支付宝目标方法

stopBluetoothDevicesDiscovery

策略说明

  • 微信:直连 `wx.stopBluetoothDevicesDiscovery`
  • 支付宝:直连 `my.stopBluetoothDevicesDiscovery`

stopCompass

native

支付宝目标方法

stopCompass

策略说明

  • 微信:直连 `wx.stopCompass`
  • 支付宝:直连 `my.stopCompass`

stopDeviceMotionListening

unsupported

停止监听设备方向变化。

支付宝目标方法

stopDeviceMotionListening

策略说明

  • 微信:直连 `wx.stopDeviceMotionListening`
  • 支付宝:无同等 API,调用时按 unsupported 报错

stopGyroscope

native

支付宝目标方法

stopGyroscope

策略说明

  • 微信:直连 `wx.stopGyroscope`
  • 支付宝:直连 `my.stopGyroscope`

stopHCE

unsupported

停止 HCE 功能。

支付宝目标方法

stopHCE

策略说明

  • 微信:直连 `wx.stopHCE`
  • 支付宝:无同等 API,调用时按 unsupported 报错

stopWifi

native

支付宝目标方法

stopWifi

策略说明

  • 微信:直连 `wx.stopWifi`
  • 支付宝:直连 `my.stopWifi`

writeBLECharacteristicValue

native

支付宝目标方法

writeBLECharacteristicValue

策略说明

  • 微信:直连 `wx.writeBLECharacteristicValue`
  • 支付宝:直连 `my.writeBLECharacteristicValue`

Released under the MIT License.