# 插件调用 API 的限制

插件可以调用的 API 与小程序不同，主要有两个区别：

* 插件的请求域名列表与小程序相互独立；
* 一些 API 不允许插件调用（这些函数不存在于 `wx` 对象下）。

有些接口虽然在插件中不能使用，但可以通过插件功能页来达到目的，请参考 [插件功能页](functional-pages)。

各接口在插件中的支持情况可以在各接口的文档中确认，接口文档中会有如 _「本接口从基础库 2.1.0 起支持在小程序插件中使用」_ 的标识；如果没有标识，说明插件暂未支持，如果有需要的具体使用场景和需求，可以在开发者社区中反馈。

以下表格汇总了目前插件可以调用的 API 及其对应版本要求，__但这份表格已经不再更新，是否可以使用，请以具体接口文档中的说明和真机表现为准__。

**插件支持接口情况参考汇总（表格已停止维护）**

## 基础

| API | 最低版本 | 备注 |
| ------ | ------ | ------ |
| [wx.arrayBufferToBase64](/miniprogram/dev/api/base/wx.arrayBufferToBase64.md) |  |  |
| [wx.base64ToArrayBuffer](/miniprogram/dev/api/base/wx.base64ToArrayBuffer.md) |  |  |

## 发起请求

| API | 最低版本 | 备注 |
| ------ | ------ | ------ |
| [wx.request](/miniprogram/dev/api/network/request/wx.request.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |

## 上传、下载

| API | 最低版本 | 备注 |
| ------ | ------ | ------ |
| [wx.downloadFile](/miniprogram/dev/api/network/download/wx.downloadFile.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |
| [wx.uploadFile](/miniprogram/dev/api/network/upload/wx.uploadFile.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |

## WebSocket

| API | 最低版本 | 备注 |
| ------ | ------ | ------ |
| [wx.connectSocket](/miniprogram/dev/api/network/websocket/SocketTask.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |

## 图片

| API | 最低版本 | 备注 |
| ------ | ------ | ------ |
| [wx.previewImage](/miniprogram/dev/api/media/image/wx.previewImage.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |
| [wx.chooseImage](/miniprogram/dev/api/media/image/wx.chooseImage.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |
| [wx.getImageInfo](/miniprogram/dev/api/media/image/wx.getImageInfo.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |
| [wx.saveImageToPhotosAlbum](/miniprogram/dev/api/media/image/wx.saveImageToPhotosAlbum.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |

## 录音

| API | 最低版本 | 备注 |
| ------ | ------ | ------ |
| [wx.startRecord](/miniprogram/dev/api/media/recorder/wx.startRecord.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |
| [wx.stopRecord](/miniprogram/dev/api/media/recorder/wx.startRecord.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |

## 实时音视频

| API | 最低版本 | 备注 |
| ------ | ------ | ------ |
| [wx.createLivePlayerContext](/miniprogram/dev/api/wxml/NodesRef.context.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |
| [wx.createLivePusherContext](/miniprogram/dev/api/media/live/LivePusherContext.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |

## 录音管理

| API | 最低版本 | 备注 |
| ------ | ------ | ------ |
| [wx.getRecorderManager](/miniprogram/dev/api/media/recorder/wx.getRecorderManager.md) | [1.9.94](/miniprogram/dev/framework/compatibility) |  |

## 音频播放控制

| API | 最低版本 | 备注 |
| ------ | ------ | ------ |
| [wx.pauseVoice](/miniprogram/dev/api/media/audio/wx.pauseVoice.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |
| [wx.playVoice](/miniprogram/dev/api/media/audio/wx.playVoice.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |
| [wx.stopVoice](/miniprogram/dev/api/media/audio/wx.pauseVoice.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |

## 音乐播放控制

| API | 最低版本 | 备注 |
| ------ | ------ | ------ |
| [wx.onBackgroundAudioPlay](/miniprogram/dev/api/media/background-audio/wx.onBackgroundAudioPlay.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |
| [wx.getBackgroundAudioPlayerState](/miniprogram/dev/api/media/background-audio/wx.getBackgroundAudioPlayerState.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |
| [wx.onBackgroundAudioStop](/miniprogram/dev/api/media/background-audio/wx.onBackgroundAudioStop.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |
| [wx.stopBackgroundAudio](/miniprogram/dev/api/media/background-audio/wx.stopBackgroundAudio.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |
| [wx.onBackgroundAudioPause](/miniprogram/dev/api/media/background-audio/wx.onBackgroundAudioPause.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |
| [wx.seekBackgroundAudio](/miniprogram/dev/api/media/background-audio/wx.seekBackgroundAudio.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |
| [wx.playBackgroundAudio](/miniprogram/dev/api/media/background-audio/wx.playBackgroundAudio.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |
| [wx.pauseBackgroundAudio](/miniprogram/dev/api/media/background-audio/wx.pauseBackgroundAudio.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |

## 背景音频播放管理

| API | 最低版本 | 备注 |
| ------ | ------ | ------ |
| [wx.getBackgroundAudioManager](/miniprogram/dev/api/media/background-audio/BackgroundAudioManager.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |

## 音频组件控制

| API | 最低版本 | 备注 |
| ------ | ------ | ------ |
| [wx.createInnerAudioContext](/miniprogram/dev/api/media/audio/InnerAudioContext.onCanplay.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |
| [wx.createAudioContext](/miniprogram/dev/api/media/audio/AudioContext.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |

## 视频

| API | 最低版本 | 备注 |
| ------ | ------ | ------ |
| [wx.chooseVideo](/miniprogram/dev/api/media/video/wx.chooseVideo.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |
| [wx.saveVideoToPhotosAlbum](/miniprogram/dev/api/media/video/wx.saveVideoToPhotosAlbum.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |

## 视频组件控制

| API | 最低版本 | 备注 |
| ------ | ------ | ------ |
| [wx.createVideoContext](/miniprogram/dev/api/wxml/NodesRef.context.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |

## 相机组件控制

| API | 最低版本 | 备注 |
| ------ | ------ | ------ |
| [wx.createCameraContext](/miniprogram/dev/api/media/camera/CameraContext.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |

## 数据缓存

| API | 最低版本 | 备注 |
| ------ | ------ | ------ |
| [wx.setStorage](/miniprogram/dev/api/storage/wx.setStorage.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |
| [wx.getStorage](/miniprogram/dev/api/storage/wx.getStorage.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |
| [wx.removeStorage](/miniprogram/dev/api/storage/wx.removeStorage.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |
| [wx.setStorageSync](/miniprogram/dev/api/storage/wx.setStorageSync.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |
| [wx.getStorageSync](/miniprogram/dev/api/storage/wx.getStorageSync.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |
| [wx.removeStorageSync](/miniprogram/dev/api/storage/wx.removeStorageSync.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |

## 获取位置

| API | 最低版本 | 备注 |
| ------ | ------ | ------ |
| [wx.getLocation](/miniprogram/dev/api/location/wx.getLocation.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |
| [wx.chooseLocation](/miniprogram/dev/api/location/wx.chooseLocation.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |
| [wx.onLocationChange](/miniprogram/dev/api/location/wx.getLocation.md) | [2.8.0](/miniprogram/dev/framework/compatibility) |  |
| [wx.offLocationChange](/miniprogram/dev/api/location/wx.offLocationChange.md) | [2.9.1](/miniprogram/dev/framework/compatibility) |  |
| [wx.stopLocationUpdate](/miniprogram/dev/api/location/wx.stopLocationUpdate.md) | [2.8.0](/miniprogram/dev/framework/compatibility) |  |
| [wx.startLocationUpdate](/miniprogram/dev/api/location/wx.getLocation.md) | [2.8.0](/miniprogram/dev/framework/compatibility) |  |

## 查看位置

| API | 最低版本 | 备注 |
| ------ | ------ | ------ |
| [wx.openLocation](/miniprogram/dev/api/media/map/MapContext.getCenterLocation.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |

## 地图组件控制

| API | 最低版本 | 备注 |
| ------ | ------ | ------ |
| [wx.createMapContext](/miniprogram/dev/api/media/map/wx.createMapContext.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |

## 系统信息

| API | 最低版本 | 备注 |
| ------ | ------ | ------ |
| [wx.getSystemInfoSync](/miniprogram/dev/api/base/system/wx.getSystemInfoSync.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |
| [wx.getSystemInfo](/miniprogram/dev/api/base/system/wx.getSystemInfo.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |

## 屏幕亮度

| API | 最低版本 | 备注 |
| ------ | ------ | ------ |
| [wx.setKeepScreenOn](/miniprogram/dev/api/device/screen/wx.setKeepScreenOn.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |
| [wx.setScreenBrightness](/miniprogram/dev/api/device/screen/wx.setScreenBrightness.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |
| [wx.getScreenBrightness](/miniprogram/dev/api/device/screen/wx.getScreenBrightness.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |

## 用户截屏事件

| API | 最低版本 | 备注 |
| ------ | ------ | ------ |
| [wx.onUserCaptureScreen](/miniprogram/dev/api/device/screen/wx.onUserCaptureScreen.md) | [1.9.6](/miniprogram/dev/framework/compatibility) | 仅限插件页面中调用 |
| [wx.offUserCaptureScreen](/miniprogram/dev/api/device/screen/wx.offUserCaptureScreen.md) | [2.9.1](/miniprogram/dev/framework/compatibility) | 仅限插件页面中调用 |

## 振动

| API | 最低版本 | 备注 |
| ------ | ------ | ------ |
| [wx.vibrateLong](/miniprogram/dev/api/device/vibrate/wx.vibrateLong.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |
| [wx.vibrateShort](/miniprogram/dev/api/device/vibrate/wx.vibrateShort.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |

## 手机联系人

| API | 最低版本 | 备注 |
| ------ | ------ | ------ |
| [wx.addPhoneContact](/miniprogram/dev/api/device/contact/wx.addPhoneContact.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |

## NFC

| API | 最低版本 | 备注 |
| ------ | ------ | ------ |
| [wx.sendHCEMessage](/miniprogram/dev/api/device/nfc-hce/wx.sendHCEMessage.md) | [2.1.0](/miniprogram/dev/framework/compatibility) |  |
| [wx.stopHCE](/miniprogram/dev/api/device/nfc-hce/wx.stopHCE.md) | [2.1.0](/miniprogram/dev/framework/compatibility) |  |
| [wx.onHCEMessage](/miniprogram/dev/api/device/nfc-hce/wx.onHCEMessage.md) | [2.1.0](/miniprogram/dev/framework/compatibility) |  |
| [wx.offHCEMessage](/miniprogram/dev/api/device/nfc-hce/wx.offHCEMessage.md) | [2.9.1](/miniprogram/dev/framework/compatibility) |  |
| [wx.startHCE](/miniprogram/dev/api/device/nfc-hce/wx.startHCE.md) | [2.1.0](/miniprogram/dev/framework/compatibility) |  |
| [wx.getHCEState](/miniprogram/dev/api/device/nfc-hce/wx.getHCEState.md) | [2.1.0](/miniprogram/dev/framework/compatibility) |  |

## 网络状态

| API | 最低版本 | 备注 |
| ------ | ------ | ------ |
| [wx.onNetworkStatusChange](/miniprogram/dev/api/device/network/wx.onNetworkStatusChange.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |
| [wx.offNetworkStatusChange](/miniprogram/dev/api/device/network/wx.offNetworkStatusChange.md) | [2.9.1](/miniprogram/dev/framework/compatibility) |  |
| [wx.getNetworkType](/miniprogram/dev/api/device/network/wx.getNetworkType.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |

## 加速度计

| API | 最低版本 | 备注 |
| ------ | ------ | ------ |
| [wx.startAccelerometer](/miniprogram/dev/api/device/accelerometer/wx.startAccelerometer.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |
| [wx.stopAccelerometer](/miniprogram/dev/api/device/accelerometer/wx.stopAccelerometer.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |
| [wx.onAccelerometerChange](/miniprogram/dev/api/device/accelerometer/wx.onAccelerometerChange.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |
| [wx.offAccelerometerChange](/miniprogram/dev/api/device/accelerometer/wx.offAccelerometerChange.md) | [2.9.1](/miniprogram/dev/framework/compatibility) |  |

## 设备方向

| API | 最低版本 | 备注 |
| ------ | ------ | ------ |
| [wx.startDeviceMotionListening](/miniprogram/dev/api/device/motion/wx.startDeviceMotionListening.md) | [2.9.1](/miniprogram/dev/framework/compatibility) |  |
| [wx.stopDeviceMotionListening](/miniprogram/dev/api/device/motion/wx.stopDeviceMotionListening.md) | [2.9.1](/miniprogram/dev/framework/compatibility) |  |
| [wx.offDeviceMotionChange](/miniprogram/dev/api/device/motion/wx.offDeviceMotionChange.md) | [2.9.1](/miniprogram/dev/framework/compatibility) |  |
| [wx.onDeviceMotionChange](/miniprogram/dev/api/device/motion/wx.onDeviceMotionChange.md) | [2.9.1](/miniprogram/dev/framework/compatibility) |  |

## 陀螺仪

| API | 最低版本 | 备注 |
| ------ | ------ | ------ |
| [wx.startGyroscope](/miniprogram/dev/api/device/gyroscope/wx.startGyroscope.md) | [2.9.1](/miniprogram/dev/framework/compatibility) |  |
| [wx.stopGyroscope](/miniprogram/dev/api/device/gyroscope/wx.stopGyroscope.md) | [2.9.1](/miniprogram/dev/framework/compatibility) |  |
| [wx.offGyroscopeChange](/miniprogram/dev/api/device/gyroscope/wx.offGyroscopeChange.md) | [2.9.1](/miniprogram/dev/framework/compatibility) |  |
| [wx.onGyroscopeChange](/miniprogram/dev/api/device/gyroscope/wx.onGyroscopeChange.md) | [2.9.1](/miniprogram/dev/framework/compatibility) |  |

## 罗盘

| API | 最低版本 | 备注 |
| ------ | ------ | ------ |
| [wx.onCompassChange](/miniprogram/dev/api/device/compass/wx.onCompassChange.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |
| [wx.offCompassChange](/miniprogram/dev/api/device/compass/wx.offCompassChange.md) | [2.9.1](/miniprogram/dev/framework/compatibility) |  |
| [wx.stopCompass](/miniprogram/dev/api/device/compass/wx.stopCompass.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |
| [wx.startCompass](/miniprogram/dev/api/device/compass/wx.startCompass.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |

## 拨打电话

| API | 最低版本 | 备注 |
| ------ | ------ | ------ |
| [wx.makePhoneCall](/miniprogram/dev/api/device/phone/wx.makePhoneCall.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |

## 扫码

| API | 最低版本 | 备注 |
| ------ | ------ | ------ |
| [wx.scanCode](/miniprogram/dev/api/device/scan/wx.scanCode.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |

## 剪贴板

| API | 最低版本 | 备注 |
| ------ | ------ | ------ |
| [wx.setClipboardData](/miniprogram/dev/api/device/clipboard/wx.setClipboardData.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |
| [wx.getClipboardData](/miniprogram/dev/api/device/clipboard/wx.getClipboardData.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |

## 蓝牙

| API | 最低版本 | 备注 |
| ------ | ------ | ------ |
| [wx.writeBLECharacteristicValue](/miniprogram/dev/api/device/bluetooth-ble/wx.writeBLECharacteristicValue.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |
| [wx.startBluetoothDevicesDiscovery](/miniprogram/dev/api/device/bluetooth/wx.startBluetoothDevicesDiscovery.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |
| [wx.getConnectedBluetoothDevices](/miniprogram/dev/api/device/bluetooth/wx.getConnectedBluetoothDevices.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |
| [wx.notifyBLECharacteristicValueChange](/miniprogram/dev/api/device/bluetooth-ble/wx.notifyBLECharacteristicValueChange.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |
| [wx.onBluetoothDeviceFound](/miniprogram/dev/api/device/bluetooth/wx.onBluetoothDeviceFound.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |
| [wx.offBluetoothDeviceFound](/miniprogram/dev/api/device/bluetooth/wx.offBluetoothDeviceFound.md) | [2.9.1](/miniprogram/dev/framework/compatibility) |  |
| [wx.readBLECharacteristicValue](/miniprogram/dev/api/device/bluetooth-ble/wx.readBLECharacteristicValue.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |
| [wx.openBluetoothAdapter](/miniprogram/dev/api/device/bluetooth/wx.closeBluetoothAdapter.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |
| [wx.getBLEDeviceCharacteristics](/miniprogram/dev/api/device/bluetooth-ble/wx.getBLEDeviceCharacteristics.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |
| [wx.stopBluetoothDevicesDiscovery](/miniprogram/dev/api/device/bluetooth/wx.startBluetoothDevicesDiscovery.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |
| [wx.onBLEConnectionStateChange](/miniprogram/dev/api/device/bluetooth-ble/wx.onBLEConnectionStateChange.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |
| [wx.getBluetoothDevices](/miniprogram/dev/api/device/bluetooth/wx.getBluetoothDevices.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |
| [wx.getBluetoothAdapterState](/miniprogram/dev/api/device/bluetooth/wx.getBluetoothAdapterState.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |
| [wx.onBluetoothAdapterStateChange](/miniprogram/dev/api/device/bluetooth/wx.onBluetoothAdapterStateChange.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |
| [wx.offBluetoothAdapterStateChange](/miniprogram/dev/api/device/bluetooth/wx.offBluetoothAdapterStateChange.md) | [2.9.1](/miniprogram/dev/framework/compatibility) |  |
| [wx.getBLEDeviceServices](/miniprogram/dev/api/device/bluetooth-ble/wx.getBLEDeviceServices.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |
| [wx.onBLECharacteristicValueChange](/miniprogram/dev/api/device/bluetooth-ble/wx.onBLECharacteristicValueChange.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |
| [wx.offBLECharacteristicValueChange](/miniprogram/dev/api/device/bluetooth-ble/wx.offBLECharacteristicValueChange.md) | [2.9.1](/miniprogram/dev/framework/compatibility) |  |
| [wx.createBLEConnection](/miniprogram/dev/api/device/bluetooth/wx.makeBluetoothPair.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |
| [wx.closeBluetoothAdapter](/miniprogram/dev/api/device/bluetooth/wx.closeBluetoothAdapter.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |
| [wx.closeBLEConnection](/miniprogram/dev/api/device/bluetooth-ble/wx.closeBLEConnection.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |
| [wx.notifyBLECharacteristicValueChange](/miniprogram/dev/api/device/bluetooth-ble/wx.notifyBLECharacteristicValueChange.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |
| [wx.onBLEConnectionStateChange](/miniprogram/dev/api/device/bluetooth-ble/wx.onBLEConnectionStateChange.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |
| [wx.offBLEConnectionStateChange](/miniprogram/dev/api/device/bluetooth-ble/wx.offBLEConnectionStateChange.md) | [2.9.1](/miniprogram/dev/framework/compatibility) |  |

## iBeacon

| API | 最低版本 | 备注 |
| ------ | ------ | ------ |
| [wx.getBeacons](/miniprogram/dev/api/device/ibeacon/wx.getBeacons.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |
| [wx.startBeaconDiscovery](/miniprogram/dev/api/device/ibeacon/wx.startBeaconDiscovery.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |
| [wx.onBeaconServiceChange](/miniprogram/dev/api/device/ibeacon/wx.onBeaconServiceChange.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |
| [wx.offBeaconServiceChange](/miniprogram/dev/api/device/ibeacon/wx.offBeaconServiceChange.md) | [2.9.1](/miniprogram/dev/framework/compatibility) |  |
| [wx.onBeaconUpdate](/miniprogram/dev/api/device/ibeacon/wx.onBeaconUpdate.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |
| [wx.offBeaconUpdate](/miniprogram/dev/api/device/ibeacon/wx.offBeaconUpdate.md) | [2.9.1](/miniprogram/dev/framework/compatibility) |  |
| [wx.stopBeaconDiscovery](/miniprogram/dev/api/device/ibeacon/wx.stopBeaconDiscovery.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |

## Wi-Fi

| API | 最低版本 | 备注 |
| ------ | ------ | ------ |
| [wx.connectWifi](/miniprogram/dev/api/device/wifi/wx.connectWifi.md) | [2.9.1](/miniprogram/dev/framework/compatibility) |  |
| [wx.getConnectedWifi](/miniprogram/dev/api/device/wifi/wx.getConnectedWifi.md) | [2.9.1](/miniprogram/dev/framework/compatibility) |  |
| [wx.getWifiList](/miniprogram/dev/api/device/wifi/wx.getWifiList.md) | [2.9.1](/miniprogram/dev/framework/compatibility) |  |
| [wx.offGetWifiList](/miniprogram/dev/api/device/wifi/wx.offGetWifiList.md) | [2.9.1](/miniprogram/dev/framework/compatibility) |  |
| [wx.offWifiConnected](/miniprogram/dev/api/device/wifi/wx.offWifiConnected.md) | [2.9.1](/miniprogram/dev/framework/compatibility) |  |
| wx.onEvaluateWifi | [2.9.1](/miniprogram/dev/framework/compatibility) |  |
| [wx.onGetWifiList](/miniprogram/dev/api/device/wifi/wx.getWifiList.md) | [2.9.1](/miniprogram/dev/framework/compatibility) |  |
| [wx.onWifiConnected](/miniprogram/dev/api/device/wifi/wx.onWifiConnected.md) | [2.9.1](/miniprogram/dev/framework/compatibility) |  |
| wx.presetWifiList | [2.9.1](/miniprogram/dev/framework/compatibility) |  |
| [wx.setWifiList](/miniprogram/dev/api/device/wifi/wx.setWifiList.md) | [2.9.1](/miniprogram/dev/framework/compatibility) |  |
| [wx.startWifi](/miniprogram/dev/api/device/wifi/wx.startWifi.md) | [2.9.1](/miniprogram/dev/framework/compatibility) |  |
| [wx.stopWifi](/miniprogram/dev/api/device/wifi/wx.stopWifi.md) | [2.9.1](/miniprogram/dev/framework/compatibility) |  |

## 交互反馈

| API | 最低版本 | 备注 |
| ------ | ------ | ------ |
| [wx.hideLoading](/miniprogram/dev/api/ui/interaction/wx.showLoading.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |
| [wx.showActionSheet](/miniprogram/dev/api/ui/interaction/wx.showActionSheet.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |
| [wx.showLoading](/miniprogram/dev/api/ui/interaction/wx.showLoading.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |
| [wx.hideToast](/miniprogram/dev/api/ui/interaction/wx.hideToast.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |
| [wx.showToast](/miniprogram/dev/api/ui/interaction/wx.showToast.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |
| [wx.showModal](/miniprogram/dev/api/ui/interaction/wx.showModal.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |

## 设置导航条

| API | 最低版本 | 备注 |
| ------ | ------ | ------ |
| [wx.showNavigationBarLoading](/miniprogram/dev/api/ui/navigation-bar/wx.showNavigationBarLoading.md) | [2.1.0](/miniprogram/dev/framework/compatibility) | 仅限插件页面中调用 |
| [wx.hideNavigationBarLoading](/miniprogram/dev/api/ui/navigation-bar/wx.hideNavigationBarLoading.md) | [2.1.0](/miniprogram/dev/framework/compatibility) | 仅限插件页面中调用 |
| [wx.setNavigationBarColor](/miniprogram/dev/api/ui/navigation-bar/wx.setNavigationBarColor.md) | [2.1.0](/miniprogram/dev/framework/compatibility) | 仅限插件页面中调用 |
| [wx.setNavigationBarTitle](/miniprogram/dev/api/ui/navigation-bar/wx.setNavigationBarTitle.md) | [2.1.0](/miniprogram/dev/framework/compatibility) | 仅限插件页面中调用 |

## 背景

| API | 最低版本 | 备注 |
| ------ | ------ | ------ |
| [wx.setBackgroundColor](/miniprogram/dev/api/ui/background/wx.setBackgroundColor.md) | [2.4.0](/miniprogram/dev/framework/compatibility) | 仅限插件页面中调用 |
| [wx.setBackgroundTextStyle](/miniprogram/dev/api/ui/background/wx.setBackgroundTextStyle.md) | [2.4.0](/miniprogram/dev/framework/compatibility) | 仅限插件页面中调用 |

## WXML 节点信息

| API | 最低版本 | 备注 |
| ------ | ------ | ------ |
| [wx.createSelectorQuery](/miniprogram/dev/api/media/map/wx.createMapContext.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |

## WXML 节点布局相交状态

| API | 最低版本 | 备注 |
| ------ | ------ | ------ |
| [wx.createIntersectionObserver](/miniprogram/dev/api/wxml/wx.createIntersectionObserver.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |

## 导航

| API | 最低版本 | 备注 |
| ------ | ------ | ------ |
| [wx.navigateBack](/miniprogram/dev/api/navigate/wx.navigateBackMiniProgram.md) | [2.1.0](/miniprogram/dev/framework/compatibility) | 仅限插件页面中调用 |
| [wx.navigateTo](/miniprogram/dev/api/navigate/wx.navigateToMiniProgram.md) | [2.2.2](/miniprogram/dev/framework/compatibility) | 仅限插件页面中调用 |
| [wx.redirectTo](/miniprogram/dev/api/route/wx.redirectTo.md) | [2.2.2](/miniprogram/dev/framework/compatibility) | 仅限插件页面中调用 |
| [wx.switchTab](/miniprogram/dev/api/route/wx.switchTab.md) | [2.3.1](/miniprogram/dev/framework/compatibility) | 仅限插件页面中调用 |
| [wx.reLaunch](/miniprogram/dev/api/route/wx.reLaunch.md) | [2.3.1](/miniprogram/dev/framework/compatibility) | 仅限插件页面中调用 |

## 动画

| API | 最低版本 | 备注 |
| ------ | ------ | ------ |
| [wx.createAnimation](/miniprogram/dev/api/ui/animation/wx.createAnimation.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |

## 位置

| API | 最低版本 | 备注 |
| ------ | ------ | ------ |
| [wx.pageScrollTo](/miniprogram/dev/api/ui/scroll/wx.pageScrollTo.md) | [2.1.0](/miniprogram/dev/framework/compatibility) | 仅限插件页面中调用 |

## 绘图

| API | 最低版本 | 备注 |
| ------ | ------ | ------ |
| [wx.createOffscreenCanvas](/miniprogram/dev/api/canvas/OffscreenCanvas.md) | [2.7.1](/miniprogram/dev/framework/compatibility) |  |
| [wx.canvasPutImageData](/miniprogram/dev/api/canvas/wx.canvasPutImageData.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |
| [wx.canvasToTempFilePath](/miniprogram/dev/api/canvas/wx.canvasToTempFilePath.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |
| [wx.createCanvasContext](/miniprogram/dev/api/canvas/wx.createCanvasContext.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |
| [wx.canvasGetImageData](/miniprogram/dev/api/canvas/wx.canvasGetImageData.md) | [1.9.6](/miniprogram/dev/framework/compatibility) |  |

## 下拉刷新

| API | 最低版本 | 备注 |
| ------ | ------ | ------ |
| [wx.stopPullDownRefresh](/miniprogram/dev/api/ui/pull-down-refresh/wx.stopPullDownRefresh.md) | [2.1.0](/miniprogram/dev/framework/compatibility) | 仅限插件页面中调用 |
| [wx.startPullDownRefresh](/miniprogram/dev/api/ui/pull-down-refresh/wx.startPullDownRefresh.md) | [2.1.0](/miniprogram/dev/framework/compatibility) | 仅限插件页面中调用 |

## 当前账号信息

| API | 最低版本 | 备注 |
| ------ | ------ | ------ |
| [wx.getAccountInfoSync](/miniprogram/dev/api/open-api/account-info/wx.getAccountInfoSync.md) | [2.2.2](/miniprogram/dev/framework/compatibility) |  |

## 转发

| API | 最低版本 | 备注 |
| ------ | ------ | ------ |
| [wx.hideShareMenu](/miniprogram/dev/api/share/wx.hideShareMenu.md) | [2.1.0](/miniprogram/dev/framework/compatibility) | 仅限插件页面中调用 |
| [wx.getShareInfo](/miniprogram/dev/api/share/wx.getShareInfo.md) | [2.1.0](/miniprogram/dev/framework/compatibility) | 仅限插件页面中调用 |
| [wx.showShareMenu](/miniprogram/dev/api/share/wx.showShareMenu.md) | [2.1.0](/miniprogram/dev/framework/compatibility) | 仅限插件页面中调用 |
| [wx.updateShareMenu](/miniprogram/dev/api/share/wx.updateShareMenu.md) | [2.1.0](/miniprogram/dev/framework/compatibility) | 仅限插件页面中调用 |

## 实时日志

| API | 最低版本 | 备注 |
| ------ | ------ | ------ |
| [wx.getRealtimeLogManager](/miniprogram/dev/api/base/debug/wx.getRealtimeLogManager.md) | [2.16.0](/miniprogram/dev/framework/compatibility) |  |

## 其他

| API | 最低版本 | 备注 |
| ------ | ------ | ------ |
| [wx.getSetting](/miniprogram/dev/api/open-api/subscribe-message/wx.requestSubscribeDeviceMessage.md) | [2.6.3](/miniprogram/dev/framework/compatibility) |  |
| [wx.openSetting](/miniprogram/dev/api/open-api/setting/wx.openSetting.md) | [2.10.3](/miniprogram/dev/framework/compatibility) |  |
| [wx.reportAnalytics](/miniprogram/dev/api/data-analysis/wx.reportAnalytics.md) | [1.9.6](/miniprogram/dev/framework/compatibility) | 见下方备注 |

## 登录和获取用户信息

**这一组接口仅限在用户信息功能页中获得用户授权之后调用。否则将返回 fail 。详见 [用户信息功能页](functional-pages/user-info) 。**

| API | 最低版本 | 备注 |
| ------ | ------ | ------ |
| [wx.login](/miniprogram/dev/api/open-api/login/wx.login.md) | [2.3.1](/miniprogram/dev/framework/compatibility) |  |
| [wx.getUserInfo](/miniprogram/dev/api/open-api/user-info/wx.getUserInfo.md) | [2.3.1](/miniprogram/dev/framework/compatibility) |  |

## Bugs & Tips

* [wx.reportAnalytics](/miniprogram/dev/api/data-analysis/wx.reportAnalytics.md) 可以被正常调用，但目前不会进行统计展示。
