×
思维导图备注
Taro 2.0.1 API文档
首页
白天
夜间
小程序
阅读
书签
我的书签
添加书签
移除书签
关于API
来源:京东
浏览
813
扫码
分享
2020-01-22 15:00:29
API 说明
Taro.Component
环境判断
消息机制
当前内容版权归
京东
或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问
京东
.
上一篇:
下一篇:
关于API
API 说明
Taro.Component
环境判断
消息机制
设备
加速度计
startAccelerometer
stopAccelerometer
onAccelerometerChange
设备方向
startDeviceMotionListening
stopDeviceMotionListening
onDeviceMotionChange
蓝牙
closeBluetoothAdapter
getBluetoothAdapterState
getBluetoothDevices
getConnectedBluetoothDevices
onBluetoothAdapterStateChange
onBluetoothDeviceFound
openBluetoothAdapter
startBluetoothDevicesDiscovery
stopBluetoothDevicesDiscovery
低功耗蓝牙
closeBLEConnection
createBLEConnection
getBLEDeviceCharacteristics
getBLEDeviceServices
notifyBLECharacteristicValueChange
onBLECharacteristicValueChange
onBLEConnectionStateChange
readBLECharacteristicValue
writeBLECharacteristicValue
亮度
getScreenBrightness
setKeepScreenOn
setScreenBrightness
剪贴板
getClipboardData
setClipboardData
罗盘
onCompassChange
startCompass
stopCompass
联系人 - addPhoneContact
iBeacon
getBeacons
onBeaconServiceChange
onBeaconUpdate
startBeaconDiscovery
stopBeaconDiscovery
网络
getNetworkType
onNetworkStatusChange
NFC
getHCEState
onHCEMessage
sendHCEMessage
startHCE
stopHCE
电话 - makePhoneCall
扫码 - scanCode
屏幕 - onUserCaptureScreen
振动
vibrateLong
vibrateShort
系统信息
canIUse
getSystemInfo
getSystemInfoSync
Wi-Fi
connectWifi
getConnectedWifi
getWifiList
onGetWifiList
offGetWifiList
onWifiConnected
offWifiConnected
setWifiList
startWifi
stopWifi
扩展API
arrayBufferToBase64
base64ToArrayBuffer
文件
getFileInfo
getSavedFileInfo
getSavedFileList
openDocument
removeSavedFile
saveFile
界面
动画 - createAnimation
画布
createCanvasContext
canvasGetImageData
canvasPutImageData
canvasToTempFilePath
createContext
drawCanvas
交互
showToast
showLoading
hideToast
hideLoading
showModal
showActionSheet
导航
navigateTo
redirectTo
switchTab
navigateBack
reLaunch
getCurrentPages
导航栏
setNavigationBarTitle
showNavigationBarLoading
hideNavigationBarLoading
setNavigationBarColor
滚动 - pageScrollTo
下拉刷新
startPullDownRefresh
stopPullDownRefresh
tabbar
setTabBarBadge
removeTabBarBadge
showTabBarRedDot
hideTabBarRedDot
setTabBarStyle
setTabBarItem
showTabBar
hideTabBar
顶栏 - setTopBarText
窗口
onWindowResize
offWindowResize
wxml
createSelectorQuery
selectorQuery.in
selectorQuery.select
selectorQuery.selectAll
selectorQuery.selectViewport
nodesRef.boundingClientRect
nodesRef.scrollOffset
nodesRef.fields
selectorQuery.exec
位置
getLocation
openLocation
chooseLocation
媒体
音频
playVoice
pauseVoice
stopVoice
createAudioContext
createInnerAudioContext
背景音频
getBackgroundAudioManager
getBackgroundAudioPlayerState
playBackgroundAudio
pauseBackgroundAudio
seekBackgroundAudio
stopBackgroundAudio
onBackgroundAudioPlay
onBackgroundAudioPause
onBackgroundAudioStop
相机 - createCameraContext
图片
chooseImage
previewImage
getImageInfo
saveImageToPhotosAlbum
地图 - createMapContext
录音
startRecord
stopRecord
视频
chooseVideo
saveVideoToPhotosAlbum
createVideoContext
网络
文件上传/下载
uploadFile
downloadFile
请求
request
addInterceptor
WebSocket
connectSocket
sendSocketMessage
closeSocket
onSocketOpen
onSocketMessage
onSocketClose
onSocketError
SocketTask
开放接口
地址 - chooseAddress
认证 - authorize
生物认证
checkIsSoterEnrolledInDevice
checkIsSupportSoterAuthentication
startSoterAuthentication
卡券
addCard
openCard
发票
chooseInvoice
chooseInvoiceTitle
登录
login
checkSession
支付
faceVerifyForPay
requestPayment
跳转小程序
navigateBackMiniProgram
navigateToMiniProgram
设置
getSetting
openSetting
用户信息 - getUserInfo
微信运动 - getWeRunData
数据缓存
setStorage
setStorageSync
getStorage
getStorageSync
getStorageInfo
getStorageInfoSync
removeStorage
removeStorageSync
clearStorage
clearStorageSync
更新 - getUpdateManager
暂无相关搜索结果!
本文档使用
BookStack
构建
×
分享,让知识传承更久远
×
文章二维码
手机扫一扫,轻松掌上读
×
文档下载
普通下载
下载码下载(免登录无限下载)
你与大神的距离,只差一个APP
请下载您需要的格式的文档,随时随地,享受汲取知识的乐趣!
PDF
文档
EPUB
文档
MOBI
文档
温馨提示
每天每在网站阅读学习一分钟时长可下载一本电子书,每天连续签到可增加阅读时长
下载码方式下载:免费、免登录、无限制。
免费获取下载码
下载码
文档格式
PDF
EPUB
MOBI
码上下载
×
微信小程序阅读
您与他人的薪资差距,只差一个随时随地学习的小程序
×
书签列表
×
阅读记录
阅读进度:
0.00%
(
0/0
)
重置阅读进度