Menu
Taro
next
文档
组件库
API
教程
博客
Taro UI
物料市场
论坛
京东小程序
Taro
next
文档
组件库
API
教程
博客
Taro UI
物料市场
论坛
京东小程序
Menu
关于API
API 说明
环境判断
消息机制
General
基础
canIUse
base64ToArrayBuffer
arrayBufferToBase64
系统
getSystemInfo
getSystemInfoSync
更新
getUpdateManager
UpdateManager
小程序
生命周期
getLaunchOptionsSync
应用级事件
onPageNotFound
onError
onAudioInterruptionEnd
onAudioInterruptionBegin
onAppShow
onAppHide
offPageNotFound
offError
offAudioInterruptionEnd
offAudioInterruptionBegin
offAppShow
offAppHide
调试
setEnableDebug
getRealtimeLogManager
getLogManager
LogManager
RealtimeLogManager
env
路由
switchTab
reLaunch
redirectTo
navigateTo
navigateBack
EventChannel
框架
App
getApp
getCurrentPages
Page
界面
交互
showToast
showModal
showLoading
showActionSheet
hideToast
hideLoading
导航栏
showNavigationBarLoading
setNavigationBarTitle
setNavigationBarColor
hideNavigationBarLoading
hideHomeButton
背景
setBackgroundTextStyle
setBackgroundColor
Tab Bar
showTabBarRedDot
showTabBar
setTabBarStyle
setTabBarItem
setTabBarBadge
removeTabBarBadge
hideTabBarRedDot
hideTabBar
字体
loadFontFace
下拉刷新
stopPullDownRefresh
startPullDownRefresh
滚动
pageScrollTo
动画
createAnimation
Animation
置顶
setTopBarText
自定义组件
nextTick
菜单
getMenuButtonBoundingClientRect
窗口
onWindowResize
offWindowResize
键盘
onKeyboardHeightChange
hideKeyboard
getSelectedTextRange
网络
发起请求
request
RequestTask
addInterceptor
下载
downloadFile
DownloadTask
上传
uploadFile
UploadTask
WebSocket
sendSocketMessage
onSocketOpen
onSocketMessage
onSocketError
onSocketClose
connectSocket
closeSocket
SocketTask
mDNS
stopLocalServiceDiscovery
startLocalServiceDiscovery
onLocalServiceResolveFail
onLocalServiceLost
onLocalServiceFound
onLocalServiceDiscoveryStop
offLocalServiceResolveFail
offLocalServiceLost
offLocalServiceFound
offLocalServiceDiscoveryStop
UDP 通信
createUDPSocket
UDPSocket
数据缓存
setStorageSync
setStorage
removeStorageSync
removeStorage
getStorageSync
getStorageInfoSync
getStorageInfo
getStorage
clearStorageSync
clearStorage
周期性更新
setBackgroundFetchToken
onBackgroundFetchData
getBackgroundFetchToken
getBackgroundFetchData
媒体
地图
createMapContext
MapContext
图片
saveImageToPhotosAlbum
previewImage
getImageInfo
compressImage
chooseMessageFile
chooseImage
视频
saveVideoToPhotosAlbum
createVideoContext
chooseVideo
VideoContext
音频
stopVoice
setInnerAudioOption
playVoice
pauseVoice
getAvailableAudioSources
createInnerAudioContext
createAudioContext
AudioContext
InnerAudioContext
背景音频
stopBackgroundAudio
seekBackgroundAudio
playBackgroundAudio
pauseBackgroundAudio
onBackgroundAudioStop
onBackgroundAudioPlay
onBackgroundAudioPause
getBackgroundAudioPlayerState
getBackgroundAudioManager
BackgroundAudioManager
实时音视频
createLivePusherContext
createLivePlayerContext
LivePlayerContext
LivePusherContext
录音
stopRecord
startRecord
getRecorderManager
RecorderManager
相机
createCameraContext
CameraContext
富文本
EditorContext
音视频合成
createMediaContainer
MediaContainer
MediaTrack
位置
stopLocationUpdate
startLocationUpdateBackground
startLocationUpdate
openLocation
onLocationChange
offLocationChange
getLocation
chooseLocation
转发
updateShareMenu
showShareMenu
hideShareMenu
getShareInfo
画布
createOffscreenCanvas
createCanvasContext
canvasToTempFilePath
canvasPutImageData
canvasGetImageData
Canvas
CanvasContext
CanvasGradient
Color
Image
ImageData
OffscreenCanvas
RenderingContext
文件
saveFile
removeSavedFile
openDocument
getSavedFileList
getSavedFileInfo
getFileSystemManager
getFileInfo
FileSystemManager
Stats
开放接口
登录
login
checkSession
小程序跳转
navigateToMiniProgram
navigateBackMiniProgram
账户信息
getAccountInfoSync
用户信息
getUserInfo
UserInfo
数据上报
reportMonitor
数据分析
reportAnalytics
支付
requestPayment
faceVerifyForPay
授权
authorize
设置
openSetting
getSetting
AuthSetting
收货地址
chooseAddress
卡券
openCard
addCard
发票
chooseInvoiceTitle
chooseInvoice
生物认证
startSoterAuthentication
checkIsSupportSoterAuthentication
checkIsSoterEnrolledInDevice
checkIsSupportFacialRecognition
startFacialRecognitionVerify
startFacialRecognitionVerifyAndUploadVideo
微信运动
getWeRunData
订阅消息
requestSubscribeMessage
设备
IBeacon
stopBeaconDiscovery
startBeaconDiscovery
onBeaconUpdate
onBeaconServiceChange
offBeaconUpdate
offBeaconServiceChange
getBeacons
IBeaconInfo
Wi-Fi
stopWifi
startWifi
setWifiList
onWifiConnected
onGetWifiList
offWifiConnected
offGetWifiList
getWifiList
getConnectedWifi
connectWifi
WifiInfo
联系人
addPhoneContact
低功耗蓝牙
writeBLECharacteristicValue
readBLECharacteristicValue
onBLEConnectionStateChange
onBLECharacteristicValueChange
notifyBLECharacteristicValueChange
getBLEDeviceServices
getBLEDeviceCharacteristics
createBLEConnection
closeBLEConnection
蓝牙
stopBluetoothDevicesDiscovery
startBluetoothDevicesDiscovery
openBluetoothAdapter
onBluetoothDeviceFound
onBluetoothAdapterStateChange
getConnectedBluetoothDevices
getBluetoothDevices
getBluetoothAdapterState
closeBluetoothAdapter
电量
getBatteryInfoSync
getBatteryInfo
剪贴板
setClipboardData
getClipboardData
NFC
stopHCE
startHCE
sendHCEMessage
onHCEMessage
offHCEMessage
getHCEState
网络
onNetworkStatusChange
offNetworkStatusChange
getNetworkType
屏幕
setScreenBrightness
setKeepScreenOn
onUserCaptureScreen
offUserCaptureScreen
getScreenBrightness
电话
makePhoneCall
加速计
stopAccelerometer
startAccelerometer
onAccelerometerChange
offAccelerometerChange
罗盘
stopCompass
startCompass
onCompassChange
offCompassChange
设备方向
stopDeviceMotionListening
startDeviceMotionListening
onDeviceMotionChange
offDeviceMotionChange
陀螺仪
stopGyroscope
startGyroscope
onGyroscopeChange
offGyroscopeChange
性能
onMemoryWarning
扫码
scanCode
震动
vibrateShort
vibrateLong
Worker
createWorker
Worker
第三方平台
getExtConfigSync
getExtConfig
云开发
cloud
DB
WXML
createSelectorQuery
createIntersectionObserver
IntersectionObserver
NodesRef
SelectorQuery
广告
createRewardedVideoAd
createInterstitialAd
InterstitialAd
RewardedVideoAd
Alipay
getOpenUserInfo
Swan
setPageInfo
Version: next
App
注册小程序。接受一个
Object
参数,其指定小程序的生命周期回调等。
#
方法
Edit this page
Previous
« EventChannel
Next
Taro.getApp(opts) »
方法