×
思维导图备注
百度智能小程序API文档(202003)
首页
白天
夜间
小程序
阅读
书签
我的书签
添加书签
移除书签
下拉刷新
来源:百度智能小程序
浏览
261
扫码
分享
2020-03-07 14:32:43
onPullDownRefresh
swan.startPullDownRefresh
swan.stopPullDownRefresh
当前内容版权归
百度智能小程序
或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问
百度智能小程序
.
上一篇:
下一篇:
API列表
基础
应用级事件
swan.onPageNotFound
swan.onError
swan.onAppShow
swan.onAppHide
swan.offPageNotFound
swan.offError
swan.offAppShow
swan.offAppHide
URL Query
onURLQueryChange
swan.getURLQuery
swan.setURLQuery
网络
使用注意事项
请求
swan.request
RequestTask
RequestTask.abort
上传、下载
swan.uploadFile
UploadTask
UploadTask.onProgressUpdate
UploadTask.abort
swan.downloadFile
DownloadTask
DownloadTask.onProgressUpdate
DownloadTask.abort
WebSocket
swan.connectSocket
swan.onSocketOpen
swan.onSocketError
swan.sendSocketMessage
swan.onSocketMessage
swan.closeSocket
swan.onSocketClose
SocketTask
SocketTask.send
SocketTask.close
SocketTask.onOpen
SocketTask.onClose
SocketTask.onError
SocketTask.onMessage
AI
接入说明
文字识别
swan.ai.ocrIdCard
swan.ai.ocrBankCard
swan.ai.ocrDrivingLicense
swan.ai.ocrVehicleLicense
文本审核 swan.ai.textReview
语音合成 swan.ai.textToAudio
图像审核 swan.ai.imageAudit
图像识别
swan.ai.advancedGeneralIdentify
swan.ai.objectDetectIdentify
swan.ai.carClassify
swan.ai.dishClassify
swan.ai.logoClassify
swan.ai.animalClassify
swan.ai.plantClassify
语音识别
swan.ai.getVoiceRecognizer
VoiceRecognizer
VoiceRecognizer.start
VoiceRecognizer.stop
VoiceRecognizer.cancel
VoiceRecognizer.onStart
VoiceRecognizer.onRecognize
VoiceRecognizer.onFinish
VoiceRecognizer.onError
人脸识别
swan.ai.faceDetect
swan.ai.faceMatch
swan.ai.faceSearch
swan.ai.facePersonVerify
swan.ai.facePersonIdmatch
swan.ai.faceLivenessSessioncode
词法分析 swan.ai.nlpLexerCustom
媒体
图片
swan.chooseImage
swan.previewImage
swan.getImageInfo
swan.compressImage
swan.saveImageToPhotosAlbum
swan.chooseAlbum
录音管理
swan.getRecorderManager
RecorderManager
RecorderManager.start
RecorderManager.pause
RecorderManager.resume
RecorderManager.stop
RecorderManager.onStart
RecorderManager.onPause
RecorderManager.onStop
RecorderManager.onError
RecorderManager.onResume
RecorderManager.onInterruptionBegin
RecorderManager.onInterruptionEnd
swan.getAvailableAudioSources
背景音频管理播放
swan.getBackgroundAudioManager
BackgroundAudioManager
BackgroundAudioManager.play
BackgroundAudioManager.pause
BackgroundAudioManager.stop
BackgroundAudioManager.seek
BackgroundAudioManager.onCanplay
BackgroundAudioManager.onPlay
BackgroundAudioManager.onPause
BackgroundAudioManager.onStop
BackgroundAudioManager.onEnded
BackgroundAudioManager.onTimeUpdate
BackgroundAudioManager.onError
BackgroundAudioManager.onWaiting
BackgroundAudioManager.onSeeked
BackgroundAudioManager.onSeeking
BackgroundAudioManager.onNext
BackgroundAudioManager.onPrev
音频组件控制
swan.createInnerAudioContext
InnerAudioContext
InnerAudioContext.play
InnerAudioContext.pause
InnerAudioContext.stop
InnerAudioContext.seek
InnerAudioContext.destroy
InnerAudioContext.onCanplay
InnerAudioContext.onPlay
InnerAudioContext.onPause
InnerAudioContext.onStop
InnerAudioContext.onEnded
InnerAudioContext.onTimeUpdate
InnerAudioContext.onError
InnerAudioContext.onWaiting
InnerAudioContext.onSeeking
InnerAudioContext.onSeeked
InnerAudioContext.offCanplay
InnerAudioContext.offPlay
InnerAudioContext.offPause
InnerAudioContext.offStop
InnerAudioContext.offEnded
InnerAudioContext.offTimeUpdate
InnerAudioContext.offError
InnerAudioContext.offWaiting
InnerAudioContext.offSeeking
InnerAudioContext.offSeeked
swan.setInnerAudioOption
视频
swan.chooseVideo
swan.saveVideoToPhotosAlbum
视频组件控制
swan.createVideoContext
VideoContext
VideoContext.play
VideoContext.pause
VideoContext.seek
VideoContext.sendDanmu
VideoContext.requestFullScreen
VideoContext.exitFullScreen
VideoContext.showStatusBar
VideoContext.hideStatusBar
VideoContext.stop
VideoContext.playbackRate
透明视频组件控制
swan.createAnimationVideo
AnimationVideo
AnimationVideo.play
AnimationVideo.pause
AnimationVideo.seek
直播组件控制
swan.createLivePlayerContext
LivePlayerContext
LivePlayerContext.play
LivePlayerContext.stop
LivePlayerContext.mute
LivePlayerContext.pause
LivePlayerContext.requestFullScreen
LivePlayerContext.exitFullScreen
LivePlayerContext.resume
相机组件控制
swan.createCameraContext
CameraContext
CameraContext.takePhoto
CameraContext.startRecord
CameraContext.stopRecord
AR 相机组件控制
swan.createARCameraContext
ARCameraContext
ARCameraContext.takePhoto
ARCameraContext.reset
ARCameraContext.startRecord
ARCameraContext.stopRecord
文件
保存、获取文件
swan.saveFile
swan.getFileInfo
swan.getSavedFileList
swan.getSavedFileInfo
删除文件 swan.removeSavedFile
打开新的文件页面 swan.openDocument
文件系统
swan.getFileSystemManager
FileSystemManager
FileSystemManager.access
FileSystemManager.accessSync
FileSystemManager.appendFile
FileSystemManager.appendFileSync
FileSystemManager.copyFile
FileSystemManager.copyFileSync
FileSystemManager.getFileInfo
FileSystemManager.getSavedFileList
FileSystemManager.mkdir
FileSystemManager.mkdirSync
FileSystemManager.readdir
FileSystemManager.readdirSync
FileSystemManager.readFile
FileSystemManager.readFileSync
FileSystemManager.removeSavedFile
FileSystemManager.rename
FileSystemManager.renameSync
FileSystemManager.rmdir
FileSystemManager.rmdirSync
FileSystemManager.saveFile
FileSystemManager.saveFileSync
FileSystemManager.stat
FileSystemManager.statSync
FileSystemManager.unlink
FileSystemManager.unlinkSync
FileSystemManager.unzip
FileSystemManager.writeFile
FileSystemManager.writeFileSync
数据存储
存储数据
数据缓存流程
swan.setStorage
swan.setStorageSync
swan.getStorage
swan.getStorageSync
swan.getStorageInfo
swan.getStorageInfoSync
存储清理
swan.removeStorage
swan.removeStorageSync
swan.clearStorage
swan.clearStorageSync
位置
获取位置
swan.getLocation
swan.chooseLocation
swan.startLocationUpdate
swan.onLocationChange
swan.offLocationChange
swan.stopLocationUpdate
查看位置 swan.openLocation
地图组件控制
swan.createMapContext
MapContext
MapContext.getCenterLocation
MapContext.moveToLocation
MapContext.translateMarker
MapContext.includePoints
MapContext.getRegion
MapContext.getScale
界面
绘图
canvas
swan.createCanvasContext
swan.canvasGetImageData
swan.canvasPutImageData
swan.canvasToTempFilePath
CanvasContext
CanvasContext.setFillStyle
CanvasContext.setStrokeStyle
CanvasContext.setShadow
CanvasContext.createLinearGradient
CanvasContext.createCircularGradient
CanvasContext.setLineWidth
CanvasContext.setLineCap
CanvasContext.setLineJoin
CanvasContext.setLineDash
CanvasContext.setMiterLimit
CanvasContext.rect
CanvasContext.fillRect
CanvasContext.strokeRect
CanvasContext.clearRect
CanvasContext.fill
CanvasContext.stroke
CanvasContext.beginPath
CanvasContext.closePath
CanvasContext.moveTo
CanvasContext.lineTo
CanvasContext.arc
CanvasContext.scale
CanvasContext.rotate
CanvasContext.translate
CanvasContext.clip
CanvasContext.setFontSize
CanvasContext.fillText
CanvasContext.setTextAlign
CanvasContext.setTextBaseline
CanvasContext.drawImage
CanvasContext.setGlobalAlpha
CanvasContext.measureText
CanvasContext.strokeText
CanvasContext.setLineDashOffset
CanvasContext.bezierCurveTo
CanvasContext.quadraticCurveTo
CanvasContext.save
CanvasContext.restore
CanvasContext.draw
CanvasContext.font
CanvasContext.setTransform
CanvasGradient
CanvasGradient.addColorStop
交互反馈
swan.showToast
swan.showLoading
swan.hideToast
swan.hideLoading
swan.showModal
swan.showActionSheet
导航栏
swan.setNavigationBarTitle
swan.showNavigationBarLoading
swan.hideNavigationBarLoading
swan.setNavigationBarColor
设置tabBar
swan.setTabBarBadge
swan.removeTabBarBadge
swan.showTabBarRedDot
swan.hideTabBarRedDot
swan.setTabBarStyle
swan.setTabBarItem
swan.showTabBar
swan.hideTabBar
导航
swan.navigateTo
swan.redirectTo
swan.switchTab
swan.navigateBack
swan.reLaunch
动画
swan.createAnimation
Animation
Animation.rotate
Animation.rotateX
Animation.rotateY
Animation.rotateZ
Animation.rotate3d
Animation.scale
Animation.scaleX
Animation.scaleY
Animation.scaleZ
Animation.scale3d
Animation.translate
Animation.translateX
Animation.translateY
Animation.translateZ
Animation.translate3d
Animation.skew
Animation.skewX
Animation.skewY
Animation.matrix
Animation.matrix3d
位置 swan.pageScrollTo
背景
swan.setBackgroundColor
swan.setBackgroundTextStyle
下拉刷新
onPullDownRefresh
swan.startPullDownRefresh
swan.stopPullDownRefresh
自定义组件 swan.nextTick
菜单 swan.getMenuButtonBoundingClientRect
节点信息
swan.createIntersectionObserver
IntersectionObserver
IntersectionObserver.relativeTo
IntersectionObserver.relativeToViewport
IntersectionObserver.observe
IntersectionObserver.disconnect
swan.createSelectorQuery
SelectorQuery
SelectorQuery.in
SelectorQuery.select
SelectorQuery.selectAll
SelectorQuery.selectViewport
SelectorQuery.exec
NodesRef
NodesRef.boundingClientRect
NodesRef.scrollOffset
NodesRef.fields
添加到我的小程序引导 swan.showFavoriteGuide
设备
系统信息
swan.getSystemInfo
swan.getSystemInfoSync
swan.getEnvInfoSync
swan.canIUse
内存 swan.onMemoryWarning
网络状态
swan.getNetworkType
swan.onNetworkStatusChange
加速度计
swan.onAccelerometerChange
swan.startAccelerometer
swan.stopAccelerometer
罗盘
swan.onCompassChange
swan.startCompass
swan.stopCompass
设备方向
swan.onDeviceMotionChange
swan.startDeviceMotionListening
swan.stopDeviceMotionListening
获取电量信息
swan.getBatteryInfo
swan.getBatteryInfoSync
扫码 swan.scanCode
屏幕亮度
swan.setScreenBrightness
swan.getScreenBrightness
swan.setKeepScreenOn
用户截屏事件 swan.onUserCaptureScreen
振动
swan.vibrateLong
swan.vibrateShort
手机联系人 swan.addPhoneContact
拨打电话 swan.makePhoneCall
剪贴板
swan.setClipboardData
swan.getClipboardData
在系统日历中新建日程
swan.addEventOnCalendar
swan.deleteEventOnCalendar
第三方平台
获取第三方平台数据
swan.getExtConfig
swan.getExtConfigSync
开放接口
登录
授权流程说明
swan.login
getunionid
Session Key
swan.checkSession
swan.isLoginSync
用户数据的签名验证和加解密
授权
需授权接口列表
获取用户授权设置
swan.authorize
用户信息
swanid机制说明
swan.getSwanId
swan.getUserInfo
signature 计算方法
设置
swan.openSetting
swan.getSetting
分享
onShareAppMessage
swan.openShare
swan.shareFile
web-view中的分享
选择收货地址 swan.chooseAddress
百度收银台支付 swan.requestPolymerPayment
全屏内容发布器
swan.openCommunityEditor
swan.closeCommunityEditor
半屏内容发布器
swan.openReplyEditor
swan.closeReplyEditor
获取发票抬头 swan.chooseInvoiceTitle
打开小程序
swan.navigateToSmartProgram
swan.navigateBackSmartProgram
页面基础信息
swan.setPageInfo
swan.setMetaDescription
swan.setMetaKeywords
swan.setDocumentTitle
分包预下载 swan.loadSubPackage
更新
swan.getUpdateManager
UpdateManager
UpdateManager.onCheckForUpdate
UpdateManager.onUpdateReady
UpdateManager.onUpdateFailed
UpdateManager.applyUpdate
调试 swan.setEnableDebug
数据分析 swan.reportAnalytics
定时器
clearInterval
clearTimeout
setInterval
setTimeout
风控 swan.getSystemRiskInfo
订阅 swan.subscribeService
错误码
暂无相关搜索结果!
本文档使用
BookStack
构建
×
分享,让知识传承更久远
×
文章二维码
手机扫一扫,轻松掌上读
×
文档下载
普通下载
下载码下载(免登录无限下载)
你与大神的距离,只差一个APP
请下载您需要的格式的文档,随时随地,享受汲取知识的乐趣!
PDF
文档
EPUB
文档
MOBI
文档
温馨提示
每天每在网站阅读学习一分钟时长可下载一本电子书,每天连续签到可增加阅读时长
下载码方式下载:免费、免登录、无限制。
免费获取下载码
下载码
文档格式
PDF
EPUB
MOBI
码上下载
×
微信小程序阅读
您与他人的薪资差距,只差一个随时随地学习的小程序
×
书签列表
×
阅读记录
阅读进度:
0.00%
(
0/0
)
重置阅读进度