Skip to content

抖音兼容矩阵 · 设备

设备

addPhoneCalendar

unsupported

添加日历事件。

抖音目标方法

addPhoneCalendar

策略说明

  • 微信:直连 `wx.addPhoneCalendar`
  • 抖音:无同等 API,调用时按 unsupported 报错

addPhoneContact

unsupported

添加手机联系人。

抖音目标方法

addPhoneContact

策略说明

  • 微信:直连 `wx.addPhoneContact`
  • 抖音:无同等 API,调用时按 unsupported 报错

addPhoneRepeatCalendar

unsupported

添加重复日历事件。

抖音目标方法

addPhoneRepeatCalendar

策略说明

  • 微信:直连 `wx.addPhoneRepeatCalendar`
  • 抖音:无同等 API,调用时按 unsupported 报错

checkIsOpenAccessibility

unsupported

检测系统无障碍是否开启。

抖音目标方法

checkIsOpenAccessibility

策略说明

  • 微信:直连 `wx.checkIsOpenAccessibility`
  • 抖音:无同等 API,调用时按 unsupported 报错

chooseContact

unsupported

抖音目标方法

chooseContact

策略说明

  • 微信:直连 `wx.chooseContact`
  • 抖音:未提供 tt.chooseContact,调用时将返回 not supported

closeBLEConnection

unsupported

断开低功耗蓝牙连接。

抖音目标方法

closeBLEConnection

策略说明

  • 微信:直连 `wx.closeBLEConnection`
  • 抖音:无同等 API,调用时按 unsupported 报错

closeBluetoothAdapter

unsupported

抖音目标方法

closeBluetoothAdapter

策略说明

  • 微信:直连 `wx.closeBluetoothAdapter`
  • 抖音:未提供 tt.closeBluetoothAdapter,调用时将返回 not supported

connectWifi

unsupported

抖音目标方法

connectWifi

策略说明

  • 微信:直连 `wx.connectWifi`
  • 抖音:未提供 tt.connectWifi,调用时将返回 not supported

createBLEConnection

unsupported

创建低功耗蓝牙连接。

抖音目标方法

createBLEConnection

策略说明

  • 微信:直连 `wx.createBLEConnection`
  • 抖音:无同等 API,调用时按 unsupported 报错

createBLEPeripheralServer

unsupported

创建 BLE 外设服务实例。

抖音目标方法

createBLEPeripheralServer

策略说明

  • 微信:直连 `wx.createBLEPeripheralServer`
  • 抖音:无同等 API,调用时按 unsupported 报错

getBatteryInfo

unsupported

异步获取电量信息。

抖音目标方法

getBatteryInfo

策略说明

  • 微信:直连 `wx.getBatteryInfo`
  • 抖音:无同等 API,调用时按 unsupported 报错

getBatteryInfoSync

unsupported

同步获取电量信息。

抖音目标方法

getBatteryInfoSync

策略说明

  • 微信:直连 `wx.getBatteryInfoSync`
  • 抖音:无同等 API,调用时按 unsupported 报错

getBeacons

unsupported

抖音目标方法

getBeacons

策略说明

  • 微信:直连 `wx.getBeacons`
  • 抖音:未提供 tt.getBeacons,调用时将返回 not supported

getBLEDeviceCharacteristics

unsupported

抖音目标方法

getBLEDeviceCharacteristics

策略说明

  • 微信:直连 `wx.getBLEDeviceCharacteristics`
  • 抖音:未提供 tt.getBLEDeviceCharacteristics,调用时将返回 not supported

getBLEDeviceRSSI

unsupported

抖音目标方法

getBLEDeviceRSSI

策略说明

  • 微信:直连 `wx.getBLEDeviceRSSI`
  • 抖音:未提供 tt.getBLEDeviceRSSI,调用时将返回 not supported

getBLEDeviceServices

unsupported

抖音目标方法

getBLEDeviceServices

策略说明

  • 微信:直连 `wx.getBLEDeviceServices`
  • 抖音:未提供 tt.getBLEDeviceServices,调用时将返回 not supported

getBLEMTU

unsupported

抖音目标方法

getBLEMTU

策略说明

  • 微信:直连 `wx.getBLEMTU`
  • 抖音:未提供 tt.getBLEMTU,调用时将返回 not supported

getBluetoothAdapterState

unsupported

抖音目标方法

getBluetoothAdapterState

策略说明

  • 微信:直连 `wx.getBluetoothAdapterState`
  • 抖音:未提供 tt.getBluetoothAdapterState,调用时将返回 not supported

getBluetoothDevices

unsupported

抖音目标方法

getBluetoothDevices

策略说明

  • 微信:直连 `wx.getBluetoothDevices`
  • 抖音:未提供 tt.getBluetoothDevices,调用时将返回 not supported

getClipboardData

mapped

获取剪贴板内容。

抖音目标方法

getClipboardData

策略说明

  • 微信:直连 `wx.getClipboardData`
  • 抖音:直连 `tt.getClipboardData`

getConnectedBluetoothDevices

unsupported

抖音目标方法

getConnectedBluetoothDevices

策略说明

  • 微信:直连 `wx.getConnectedBluetoothDevices`
  • 抖音:未提供 tt.getConnectedBluetoothDevices,调用时将返回 not supported

getConnectedWifi

native

抖音目标方法

getConnectedWifi

策略说明

  • 微信:直连 `wx.getConnectedWifi`
  • 抖音:直连 `tt.getConnectedWifi`

getHCEState

unsupported

获取 HCE 状态。

抖音目标方法

getHCEState

策略说明

  • 微信:直连 `wx.getHCEState`
  • 抖音:无同等 API,调用时按 unsupported 报错

getLocalIPAddress

unsupported

抖音目标方法

getLocalIPAddress

策略说明

  • 微信:直连 `wx.getLocalIPAddress`
  • 抖音:未提供 tt.getLocalIPAddress,调用时将返回 not supported

getNetworkType

unsupported

获取网络类型。

抖音目标方法

getNetworkType

策略说明

  • 微信:直连 `wx.getNetworkType`
  • 抖音:无同等 API,调用时按 unsupported 报错

getNFCAdapter

unsupported

获取 NFC 适配器。

抖音目标方法

getNFCAdapter

策略说明

  • 微信:直连 `wx.getNFCAdapter`
  • 抖音:无同等 API,调用时按 unsupported 报错

getRandomValues

unsupported

获取随机值。

抖音目标方法

getRandomValues

策略说明

  • 微信:直连 `wx.getRandomValues`
  • 抖音:无同等 API,调用时按 unsupported 报错

getScreenBrightness

native

抖音目标方法

getScreenBrightness

策略说明

  • 微信:直连 `wx.getScreenBrightness`
  • 抖音:直连 `tt.getScreenBrightness`

getScreenRecordingState

unsupported

获取录屏状态。

抖音目标方法

getScreenRecordingState

策略说明

  • 微信:直连 `wx.getScreenRecordingState`
  • 抖音:无同等 API,调用时按 unsupported 报错

getWifiList

native

抖音目标方法

getWifiList

策略说明

  • 微信:直连 `wx.getWifiList`
  • 抖音:直连 `tt.getWifiList`

hideKeyboard

native

抖音目标方法

hideKeyboard

策略说明

  • 微信:直连 `wx.hideKeyboard`
  • 抖音:直连 `tt.hideKeyboard`

isBluetoothDevicePaired

unsupported

判断蓝牙设备是否已配对。

抖音目标方法

isBluetoothDevicePaired

策略说明

  • 微信:直连 `wx.isBluetoothDevicePaired`
  • 抖音:无同等 API,调用时按 unsupported 报错

makeBluetoothPair

unsupported

抖音目标方法

makeBluetoothPair

策略说明

  • 微信:直连 `wx.makeBluetoothPair`
  • 抖音:未提供 tt.makeBluetoothPair,调用时将返回 not supported

makePhoneCall

native

抖音目标方法

makePhoneCall

策略说明

  • 微信:直连 `wx.makePhoneCall`
  • 抖音:直连 `tt.makePhoneCall`

notifyBLECharacteristicValueChange

unsupported

抖音目标方法

notifyBLECharacteristicValueChange

策略说明

  • 微信:直连 `wx.notifyBLECharacteristicValueChange`
  • 抖音:未提供 tt.notifyBLECharacteristicValueChange,调用时将返回 not supported

offAccelerometerChange

unsupported

抖音目标方法

offAccelerometerChange

策略说明

  • 微信:直连 `wx.offAccelerometerChange`
  • 抖音:未提供 tt.offAccelerometerChange,调用时将返回 not supported

offBatteryInfoChange

unsupported

抖音目标方法

offBatteryInfoChange

策略说明

  • 微信:直连 `wx.offBatteryInfoChange`
  • 抖音:未提供 tt.offBatteryInfoChange,调用时将返回 not supported

offBeaconServiceChange

unsupported

抖音目标方法

offBeaconServiceChange

策略说明

  • 微信:直连 `wx.offBeaconServiceChange`
  • 抖音:未提供 tt.offBeaconServiceChange,调用时将返回 not supported

offBeaconUpdate

unsupported

抖音目标方法

offBeaconUpdate

策略说明

  • 微信:直连 `wx.offBeaconUpdate`
  • 抖音:未提供 tt.offBeaconUpdate,调用时将返回 not supported

offBLECharacteristicValueChange

unsupported

抖音目标方法

offBLECharacteristicValueChange

策略说明

  • 微信:直连 `wx.offBLECharacteristicValueChange`
  • 抖音:未提供 tt.offBLECharacteristicValueChange,调用时将返回 not supported

offBLEConnectionStateChange

unsupported

取消监听 BLE 连接状态变化。

抖音目标方法

offBLEConnectionStateChange

策略说明

  • 微信:直连 `wx.offBLEConnectionStateChange`
  • 抖音:抖音无同等 API,调用时报 not supported

offBLEMTUChange

unsupported

抖音目标方法

offBLEMTUChange

策略说明

  • 微信:直连 `wx.offBLEMTUChange`
  • 抖音:未提供 tt.offBLEMTUChange,调用时将返回 not supported

offBLEPeripheralConnectionStateChanged

unsupported

抖音目标方法

offBLEPeripheralConnectionStateChanged

策略说明

  • 微信:直连 `wx.offBLEPeripheralConnectionStateChanged`
  • 抖音:未提供 tt.offBLEPeripheralConnectionStateChanged,调用时将返回 not supported

offBluetoothAdapterStateChange

unsupported

抖音目标方法

offBluetoothAdapterStateChange

策略说明

  • 微信:直连 `wx.offBluetoothAdapterStateChange`
  • 抖音:未提供 tt.offBluetoothAdapterStateChange,调用时将返回 not supported

offBluetoothDeviceFound

unsupported

抖音目标方法

offBluetoothDeviceFound

策略说明

  • 微信:直连 `wx.offBluetoothDeviceFound`
  • 抖音:未提供 tt.offBluetoothDeviceFound,调用时将返回 not supported

offCompassChange

native

抖音目标方法

offCompassChange

策略说明

  • 微信:直连 `wx.offCompassChange`
  • 抖音:直连 `tt.offCompassChange`

offDeviceMotionChange

unsupported

抖音目标方法

offDeviceMotionChange

策略说明

  • 微信:直连 `wx.offDeviceMotionChange`
  • 抖音:未提供 tt.offDeviceMotionChange,调用时将返回 not supported

offGetWifiList

native

抖音目标方法

offGetWifiList

策略说明

  • 微信:直连 `wx.offGetWifiList`
  • 抖音:直连 `tt.offGetWifiList`

offGyroscopeChange

unsupported

抖音目标方法

offGyroscopeChange

策略说明

  • 微信:直连 `wx.offGyroscopeChange`
  • 抖音:未提供 tt.offGyroscopeChange,调用时将返回 not supported

offHCEMessage

unsupported

抖音目标方法

offHCEMessage

策略说明

  • 微信:直连 `wx.offHCEMessage`
  • 抖音:未提供 tt.offHCEMessage,调用时将返回 not supported

offKeyboardHeightChange

unsupported

抖音目标方法

offKeyboardHeightChange

策略说明

  • 微信:直连 `wx.offKeyboardHeightChange`
  • 抖音:未提供 tt.offKeyboardHeightChange,调用时将返回 not supported

offMemoryWarning

unsupported

取消内存不足告警监听。

抖音目标方法

offMemoryWarning

策略说明

  • 微信:直连 `wx.offMemoryWarning`
  • 抖音:无同等 API,调用时按 unsupported 报错

offScreenRecordingStateChanged

unsupported

抖音目标方法

offScreenRecordingStateChanged

策略说明

  • 微信:直连 `wx.offScreenRecordingStateChanged`
  • 抖音:未提供 tt.offScreenRecordingStateChanged,调用时将返回 not supported

offUserCaptureScreen

native

抖音目标方法

offUserCaptureScreen

策略说明

  • 微信:直连 `wx.offUserCaptureScreen`
  • 抖音:直连 `tt.offUserCaptureScreen`

offWifiConnected

unsupported

抖音目标方法

offWifiConnected

策略说明

  • 微信:直连 `wx.offWifiConnected`
  • 抖音:未提供 tt.offWifiConnected,调用时将返回 not supported

offWifiConnectedWithPartialInfo

unsupported

抖音目标方法

offWifiConnectedWithPartialInfo

策略说明

  • 微信:直连 `wx.offWifiConnectedWithPartialInfo`
  • 抖音:未提供 tt.offWifiConnectedWithPartialInfo,调用时将返回 not supported

onAccelerometerChange

native

抖音目标方法

onAccelerometerChange

策略说明

  • 微信:直连 `wx.onAccelerometerChange`
  • 抖音:直连 `tt.onAccelerometerChange`

onBatteryInfoChange

unsupported

抖音目标方法

onBatteryInfoChange

策略说明

  • 微信:直连 `wx.onBatteryInfoChange`
  • 抖音:未提供 tt.onBatteryInfoChange,调用时将返回 not supported

onBeaconServiceChange

unsupported

抖音目标方法

onBeaconServiceChange

策略说明

  • 微信:直连 `wx.onBeaconServiceChange`
  • 抖音:未提供 tt.onBeaconServiceChange,调用时将返回 not supported

onBeaconUpdate

unsupported

抖音目标方法

onBeaconUpdate

策略说明

  • 微信:直连 `wx.onBeaconUpdate`
  • 抖音:未提供 tt.onBeaconUpdate,调用时将返回 not supported

onBLECharacteristicValueChange

unsupported

抖音目标方法

onBLECharacteristicValueChange

策略说明

  • 微信:直连 `wx.onBLECharacteristicValueChange`
  • 抖音:未提供 tt.onBLECharacteristicValueChange,调用时将返回 not supported

onBLEConnectionStateChange

unsupported

监听 BLE 连接状态变化。

抖音目标方法

onBLEConnectionStateChange

策略说明

  • 微信:直连 `wx.onBLEConnectionStateChange`
  • 抖音:抖音无同等 API,调用时报 not supported

onBLEMTUChange

unsupported

抖音目标方法

onBLEMTUChange

策略说明

  • 微信:直连 `wx.onBLEMTUChange`
  • 抖音:未提供 tt.onBLEMTUChange,调用时将返回 not supported

onBLEPeripheralConnectionStateChanged

unsupported

抖音目标方法

onBLEPeripheralConnectionStateChanged

策略说明

  • 微信:直连 `wx.onBLEPeripheralConnectionStateChanged`
  • 抖音:未提供 tt.onBLEPeripheralConnectionStateChanged,调用时将返回 not supported

onBluetoothAdapterStateChange

unsupported

抖音目标方法

onBluetoothAdapterStateChange

策略说明

  • 微信:直连 `wx.onBluetoothAdapterStateChange`
  • 抖音:未提供 tt.onBluetoothAdapterStateChange,调用时将返回 not supported

onBluetoothDeviceFound

unsupported

抖音目标方法

onBluetoothDeviceFound

策略说明

  • 微信:直连 `wx.onBluetoothDeviceFound`
  • 抖音:未提供 tt.onBluetoothDeviceFound,调用时将返回 not supported

onCompassChange

native

抖音目标方法

onCompassChange

策略说明

  • 微信:直连 `wx.onCompassChange`
  • 抖音:直连 `tt.onCompassChange`

onDeviceMotionChange

unsupported

抖音目标方法

onDeviceMotionChange

策略说明

  • 微信:直连 `wx.onDeviceMotionChange`
  • 抖音:未提供 tt.onDeviceMotionChange,调用时将返回 not supported

onGetWifiList

native

抖音目标方法

onGetWifiList

策略说明

  • 微信:直连 `wx.onGetWifiList`
  • 抖音:直连 `tt.onGetWifiList`

onGyroscopeChange

unsupported

抖音目标方法

onGyroscopeChange

策略说明

  • 微信:直连 `wx.onGyroscopeChange`
  • 抖音:未提供 tt.onGyroscopeChange,调用时将返回 not supported

onHCEMessage

unsupported

抖音目标方法

onHCEMessage

策略说明

  • 微信:直连 `wx.onHCEMessage`
  • 抖音:未提供 tt.onHCEMessage,调用时将返回 not supported

onKeyboardHeightChange

unsupported

抖音目标方法

onKeyboardHeightChange

策略说明

  • 微信:直连 `wx.onKeyboardHeightChange`
  • 抖音:未提供 tt.onKeyboardHeightChange,调用时将返回 not supported

onMemoryWarning

native

抖音目标方法

onMemoryWarning

策略说明

  • 微信:直连 `wx.onMemoryWarning`
  • 抖音:直连 `tt.onMemoryWarning`

onScreenRecordingStateChanged

unsupported

抖音目标方法

onScreenRecordingStateChanged

策略说明

  • 微信:直连 `wx.onScreenRecordingStateChanged`
  • 抖音:未提供 tt.onScreenRecordingStateChanged,调用时将返回 not supported

onUserCaptureScreen

native

抖音目标方法

onUserCaptureScreen

策略说明

  • 微信:直连 `wx.onUserCaptureScreen`
  • 抖音:直连 `tt.onUserCaptureScreen`

onWifiConnected

unsupported

抖音目标方法

onWifiConnected

策略说明

  • 微信:直连 `wx.onWifiConnected`
  • 抖音:未提供 tt.onWifiConnected,调用时将返回 not supported

onWifiConnectedWithPartialInfo

unsupported

抖音目标方法

onWifiConnectedWithPartialInfo

策略说明

  • 微信:直连 `wx.onWifiConnectedWithPartialInfo`
  • 抖音:未提供 tt.onWifiConnectedWithPartialInfo,调用时将返回 not supported

openBluetoothAdapter

unsupported

抖音目标方法

openBluetoothAdapter

策略说明

  • 微信:直连 `wx.openBluetoothAdapter`
  • 抖音:未提供 tt.openBluetoothAdapter,调用时将返回 not supported

openSystemBluetoothSetting

unsupported

打开系统蓝牙设置页面。

抖音目标方法

openSystemBluetoothSetting

策略说明

  • 微信:直连 `wx.openSystemBluetoothSetting`
  • 抖音:无同等 API,调用时按 unsupported 报错

readBLECharacteristicValue

unsupported

抖音目标方法

readBLECharacteristicValue

策略说明

  • 微信:直连 `wx.readBLECharacteristicValue`
  • 抖音:未提供 tt.readBLECharacteristicValue,调用时将返回 not supported

scanCode

mapped

扫码。

抖音目标方法

scanCode

策略说明

  • 微信:直连 `wx.scanCode`
  • 抖音:直连 `tt.scanCode`

sendSms

unsupported

发送短信。

抖音目标方法

sendSms

策略说明

  • 微信:直连 `wx.sendSms`
  • 抖音:无同等 API,调用时按 unsupported 报错

setBLEMTU

unsupported

抖音目标方法

setBLEMTU

策略说明

  • 微信:直连 `wx.setBLEMTU`
  • 抖音:未提供 tt.setBLEMTU,调用时将返回 not supported

setClipboardData

mapped

设置剪贴板内容。

抖音目标方法

setClipboardData

策略说明

  • 微信:直连 `wx.setClipboardData`
  • 抖音:直连 `tt.setClipboardData`

setKeepScreenOn

native

抖音目标方法

setKeepScreenOn

策略说明

  • 微信:直连 `wx.setKeepScreenOn`
  • 抖音:直连 `tt.setKeepScreenOn`

setScreenBrightness

native

抖音目标方法

setScreenBrightness

策略说明

  • 微信:直连 `wx.setScreenBrightness`
  • 抖音:直连 `tt.setScreenBrightness`

setWifiList

unsupported

抖音目标方法

setWifiList

策略说明

  • 微信:直连 `wx.setWifiList`
  • 抖音:未提供 tt.setWifiList,调用时将返回 not supported

startAccelerometer

native

抖音目标方法

startAccelerometer

策略说明

  • 微信:直连 `wx.startAccelerometer`
  • 抖音:直连 `tt.startAccelerometer`

startBeaconDiscovery

unsupported

抖音目标方法

startBeaconDiscovery

策略说明

  • 微信:直连 `wx.startBeaconDiscovery`
  • 抖音:未提供 tt.startBeaconDiscovery,调用时将返回 not supported

startBluetoothDevicesDiscovery

unsupported

抖音目标方法

startBluetoothDevicesDiscovery

策略说明

  • 微信:直连 `wx.startBluetoothDevicesDiscovery`
  • 抖音:未提供 tt.startBluetoothDevicesDiscovery,调用时将返回 not supported

startCompass

native

抖音目标方法

startCompass

策略说明

  • 微信:直连 `wx.startCompass`
  • 抖音:直连 `tt.startCompass`

startDeviceMotionListening

unsupported

开始监听设备方向变化。

抖音目标方法

startDeviceMotionListening

策略说明

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

startGyroscope

unsupported

抖音目标方法

startGyroscope

策略说明

  • 微信:直连 `wx.startGyroscope`
  • 抖音:未提供 tt.startGyroscope,调用时将返回 not supported

startHCE

unsupported

启动 HCE 功能。

抖音目标方法

startHCE

策略说明

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

startWifi

unsupported

抖音目标方法

startWifi

策略说明

  • 微信:直连 `wx.startWifi`
  • 抖音:未提供 tt.startWifi,调用时将返回 not supported

stopAccelerometer

native

抖音目标方法

stopAccelerometer

策略说明

  • 微信:直连 `wx.stopAccelerometer`
  • 抖音:直连 `tt.stopAccelerometer`

stopBeaconDiscovery

unsupported

抖音目标方法

stopBeaconDiscovery

策略说明

  • 微信:直连 `wx.stopBeaconDiscovery`
  • 抖音:未提供 tt.stopBeaconDiscovery,调用时将返回 not supported

stopBluetoothDevicesDiscovery

unsupported

抖音目标方法

stopBluetoothDevicesDiscovery

策略说明

  • 微信:直连 `wx.stopBluetoothDevicesDiscovery`
  • 抖音:未提供 tt.stopBluetoothDevicesDiscovery,调用时将返回 not supported

stopCompass

native

抖音目标方法

stopCompass

策略说明

  • 微信:直连 `wx.stopCompass`
  • 抖音:直连 `tt.stopCompass`

stopDeviceMotionListening

unsupported

停止监听设备方向变化。

抖音目标方法

stopDeviceMotionListening

策略说明

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

stopGyroscope

unsupported

抖音目标方法

stopGyroscope

策略说明

  • 微信:直连 `wx.stopGyroscope`
  • 抖音:未提供 tt.stopGyroscope,调用时将返回 not supported

stopHCE

unsupported

停止 HCE 功能。

抖音目标方法

stopHCE

策略说明

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

stopWifi

unsupported

抖音目标方法

stopWifi

策略说明

  • 微信:直连 `wx.stopWifi`
  • 抖音:未提供 tt.stopWifi,调用时将返回 not supported

writeBLECharacteristicValue

unsupported

抖音目标方法

writeBLECharacteristicValue

策略说明

  • 微信:直连 `wx.writeBLECharacteristicValue`
  • 抖音:未提供 tt.writeBLECharacteristicValue,调用时将返回 not supported

Released under the MIT License.