Skip to content

Latest commit

 

History

History
42 lines (38 loc) · 4.42 KB

File metadata and controls

42 lines (38 loc) · 4.42 KB
title header nav sidebar
模拟器 API 与真机的实现差异
develop
devtools
diff

API 在模拟器与真机中的实现差异如下:

api 差异
map 地图 map地图的bindpoitap事件开发者工具暂不支持
swan.startLocationUpdate 开发者工具暂不支持
swan.onLocationChange 开发者工具暂不支持
swan.offLocationChange 开发者工具暂不支持
swan.stopLocationUpdate 开发者工具暂不支持
swan.deleteEventOnCalendar 开发者工具暂不支持
swan.addEventOnCalendar 开发者工具暂不支持
swan.getSystemInfo 部分属性开发者工具暂不支持,详情请看详情页
swan.getSystemInfoSync 部分属性开发者工具暂不支持,详情请看详情页
swan.compressImage 开发者工具暂不支持
swan.getLocation 工具暂不支持返回wgs84坐标系
swan.onMemoryWarning 通过“模拟操作->内存警告”触发
swan.onNetworkStatusChange 通过“模拟操作->网络”切换网络触发
swan.onCompassChange 返回模拟数据
swan.onDeviceMotionChange 返回模拟数据, 通过“模拟操作->震动”触发
swan.scanCode 通过“模拟操作->扫码”设置扫码返回数据
swan.onUserCaptureScreen 通过“模拟操作->截屏”触发
swan.vibrateLong 开发者工具暂不支持
swan.vibrateShort 开发者工具暂不支持
swan.makePhoneCall 弹窗提示接口调用成功
swan.requestPolymerPayment 工具暂不支持调起支付
swan.chooseInvoiceTitle 提供模拟可选发票
swan.navigateToSmartProgram 开发者工具暂不支持
swan.navigateBackSmartProgram 开发者工具暂不支持
swan.setEnableDebug 开发者工具暂不支持
swan.showFavoriteGuide 为方便开发者开发和调试,该api在开发工具中并未使用引导组件的统一策略
swan.setInnerAudioOption 开发者工具暂不支持
swan.ai.getVoiceRecognizer 开发者工具暂不支持
swan.shareFile 开发者工具暂不支持