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