Mini Program
  • Mini Program
  • Mini Game
  • Official Accounts
  • Open Platform
  • Service Accounts
  • Wechat Store
Development
Introduction
Design
Operation
Data
Security
Community
School
取消
    Get More
    Find More >
    • Guide
    • Framework
    • Components
    • API
    • Server Side
    • Capabilities
      • Industry
      • Commercial
      • Platform Capabilities
      • Market Services
      • City Services
      • Charge
      • Extended
    • Weixin DevTools
    • Cloud Service
      • Cloud Base
      • WeChat CloudRun
    • Update History
    Development
    Development
    Introduction
    Design
    Operation
    Data
    Security
    中文
    EN
    取消
  • API
    • Basics
      • wx.env
      • wx.canIUse
      • wx.base64ToArrayBuffer
      • wx.arrayBufferToBase64
      • system
        • wx.getSystemInfoSync
        • wx.getSystemInfoAsync
        • wx.getSystemInfo
      • To update
        • wx.updateWeChatApp
        • wx.getUpdateManager
        • UpdateManager
          • UpdateManager.applyUpdate
          • UpdateManager.onCheckForUpdate
          • UpdateManager.onUpdateFailed
          • UpdateManager.onUpdateReady
      • Mini Program
        • Life cycle
          • wx.getLaunchOptionsSync
          • wx.getEnterOptionsSync
        • Application-level event
          • wx.onUnhandledRejection
          • wx.onThemeChange
          • wx.onPageNotFound
          • wx.onError
          • wx.onAudioInterruptionEnd
          • wx.onAudioInterruptionBegin
          • wx.onAppShow
          • wx.onAppHide
          • wx.offUnhandledRejection
          • wx.offThemeChange
          • wx.offPageNotFound
          • wx.offError
          • wx.offAudioInterruptionEnd
          • wx.offAudioInterruptionBegin
          • wx.offAppShow
          • wx.offAppHide
      • debugging
        • wx.setEnableDebug
        • wx.getRealtimeLogManager
        • wx.getLogManager
        • LogManager
          • LogManager.debug
          • LogManager.info
          • LogManager.log
          • LogManager.warn
        • RealtimeLogManager
          • RealtimeLogManager.addFilterMsg
          • RealtimeLogManager.error
          • RealtimeLogManager.getCurrentState
          • RealtimeLogManager.in
          • RealtimeLogManager.info
          • RealtimeLogManager.setFilterMsg
          • RealtimeLogManager.tag
          • RealtimeLogManager.warn
        • RealtimeTagLogManager
          • RealtimeTagLogManager.addFilterMsg
          • RealtimeTagLogManager.error
          • RealtimeTagLogManager.info
          • RealtimeTagLogManager.setFilterMsg
          • RealtimeTagLogManager.warn
      • performance
        • wx.reportPerformance
        • wx.getPerformance
        • EntryList
          • EntryList.getEntries
          • EntryList.getEntriesByName
          • EntryList.getEntriesByType
        • Performance
          • Performance.createObserver
          • Performance.getEntries
          • Performance.getEntriesByName
          • Performance.getEntriesByType
          • Performance.setBufferSize
        • PerformanceObserver
          • PerformanceObserver.disconnect
          • PerformanceObserver.observe
      • encryption
        • wx.getUserCryptoManager
        • UserCryptoManager
          • UserCryptoManager.getLatestUserKey
          • UserCryptoManager.getRandomValues
    • routing
      • wx.switchTab
      • wx.reLaunch
      • wx.redirectTo
      • wx.navigateTo
      • wx.navigateBack
      • EventChannel
        • EventChannel.emit
        • EventChannel.off
        • EventChannel.on
        • EventChannel.once
    • Jump
      • wx.navigateToMiniProgram
      • wx.navigateBackMiniProgram
      • wx.exitMiniProgram
    • Forward
      • wx.updateShareMenu
      • wx.showShareMenu
      • wx.showShareImageMenu
      • wx.shareVideoMessage
      • wx.shareFileMessage
      • wx.onCopyUrl
      • wx.offCopyUrl
      • wx.hideShareMenu
      • wx.getShareInfo
      • wx.authPrivateMessage
    • interface
      • interactive
        • wx.showToast
        • wx.showModal
        • wx.showLoading
        • wx.showActionSheet
        • wx.hideToast
        • wx.hideLoading
        • wx.enableAlertBeforeUnload
        • wx.disableAlertBeforeUnload
      • Navigation bar
        • wx.showNavigationBarLoading
        • wx.setNavigationBarTitle
        • wx.setNavigationBarColor
        • wx.hideNavigationBarLoading
        • wx.hideHomeButton
      • background
        • wx.setBackgroundTextStyle
        • wx.setBackgroundColor
      • Tab Bar
        • wx.showTabBarRedDot
        • wx.showTabBar
        • wx.setTabBarStyle
        • wx.setTabBarItem
        • wx.setTabBarBadge
        • wx.removeTabBarBadge
        • wx.hideTabBarRedDot
        • wx.hideTabBar
      • Typeface
        • wx.loadFontFace
      • Dropdown refresh
        • wx.stopPullDownRefresh
        • wx.startPullDownRefresh
      • Roll
        • wx.pageScrollTo
        • ScrollViewContext
          • ScrollViewContext.scrollIntoView
          • ScrollViewContext.scrollTo
      • animation
        • wx.createAnimation
        • Animation
          • Animation.backgroundColor
          • Animation.bottom
          • Animation.export
          • Animation.height
          • Animation.left
          • Animation.matrix
          • Animation.matrix3d
          • Animation.opacity
          • Animation.right
          • Animation.rotate
          • Animation.rotate3d
          • Animation.rotateX
          • Animation.rotateY
          • Animation.rotateZ
          • Animation.scale
          • Animation.scale3d
          • Animation.scaleX
          • Animation.scaleY
          • Animation.scaleZ
          • Animation.skew
          • Animation.skewX
          • Animation.skewY
          • Animation.step
          • Animation.top
          • Animation.translate
          • Animation.translate3d
          • Animation.translateX
          • Animation.translateY
          • Animation.translateZ
          • Animation.width
      • to sticky
        • wx.setTopBarText
      • Custom components
        • wx.nextTick
      • Menu
        • wx.getMenuButtonBoundingClientRect
      • window
        • wx.setWindowSize
        • wx.onWindowResize
        • wx.offWindowResize
    • network
      • Initiate request
        • wx.request
        • RequestTask
          • RequestTask.abort
          • RequestTask.offHeadersReceived
          • RequestTask.onHeadersReceived
      • to download
        • wx.downloadFile
        • DownloadTask
          • DownloadTask.abort
          • DownloadTask.offHeadersReceived
          • DownloadTask.offProgressUpdate
          • DownloadTask.onHeadersReceived
          • DownloadTask.onProgressUpdate
      • upload
        • wx.uploadFile
        • UploadTask
          • UploadTask.abort
          • UploadTask.offHeadersReceived
          • UploadTask.offProgressUpdate
          • UploadTask.onHeadersReceived
          • UploadTask.onProgressUpdate
      • WebSocket
        • wx.sendSocketMessage
        • wx.onSocketOpen
        • wx.onSocketMessage
        • wx.onSocketError
        • wx.onSocketClose
        • wx.connectSocket
        • wx.closeSocket
        • SocketTask
          • SocketTask.close
          • SocketTask.onClose
          • SocketTask.onError
          • SocketTask.onMessage
          • SocketTask.onOpen
          • SocketTask.send
      • mDNS
        • wx.stopLocalServiceDiscovery
        • wx.startLocalServiceDiscovery
        • wx.onLocalServiceResolveFail
        • wx.onLocalServiceLost
        • wx.onLocalServiceFound
        • wx.onLocalServiceDiscoveryStop
        • wx.offLocalServiceResolveFail
        • wx.offLocalServiceLost
        • wx.offLocalServiceFound
        • wx.offLocalServiceDiscoveryStop
      • TCP Signal communication
        • wx.createTCPSocket
        • TCPSocket
          • TCPSocket.close
          • TCPSocket.connect
          • TCPSocket.offClose
          • TCPSocket.offConnect
          • TCPSocket.offError
          • TCPSocket.offMessage
          • TCPSocket.onClose
          • TCPSocket.onConnect
          • TCPSocket.onError
          • TCPSocket.onMessage
          • TCPSocket.write
      • UDP Signal communication
        • wx.createUDPSocket
        • UDPSocket
          • UDPSocket.bind
          • UDPSocket.close
          • UDPSocket.connect
          • UDPSocket.offClose
          • UDPSocket.offError
          • UDPSocket.offListening
          • UDPSocket.offMessage
          • UDPSocket.onClose
          • UDPSocket.onError
          • UDPSocket.onListening
          • UDPSocket.onMessage
          • UDPSocket.send
          • UDPSocket.setTTL
          • UDPSocket.write
    • payment
      • wx.requestPayment
      • wx.requestOrderPayment
    • Data cache
      • wx.setStorageSync
      • wx.setStorage
      • wx.revokeBufferURL
      • wx.removeStorageSync
      • wx.removeStorage
      • wx.getStorageSync
      • wx.getStorageInfoSync
      • wx.getStorageInfo
      • wx.getStorage
      • wx.createBufferURL
      • wx.clearStorageSync
      • wx.clearStorage
      • Periodic update
        • wx.setBackgroundFetchToken
        • wx.onBackgroundFetchData
        • wx.getBackgroundFetchToken
        • wx.getBackgroundFetchData
    • Data analysis
      • wx.reportMonitor
      • wx.reportEvent
      • wx.reportAnalytics
      • wx.getExptInfoSync
    • canvas
      • wx.createOffscreenCanvas
      • wx.createCanvasContext
      • wx.canvasToTempFilePath
      • wx.canvasPutImageData
      • wx.canvasGetImageData
      • Canvas
        • Canvas.cancelAnimationFrame
        • Canvas.createImage
        • Canvas.createImageData
        • Canvas.createPath2D
        • Canvas.getContext
        • Canvas.requestAnimationFrame
        • Canvas.toDataURL
      • CanvasContext
        • CanvasContext.arc
        • CanvasContext.arcTo
        • CanvasContext.beginPath
        • CanvasContext.bezierCurveTo
        • CanvasContext.clearRect
        • CanvasContext.Clip
        • CanvasContext.closePath
        • CanvasContext.createCircularGradient
        • CanvasContext.createLinearGradient
        • CanvasContext.createPattern
        • CanvasContext.draw
        • CanvasContext.drawImage
        • CanvasContext.fill
        • CanvasContext.fillRect
        • CanvasContext.fillText
        • CanvasContext.lineTo
        • CanvasContext.measureText
        • CanvasContext.moveTo
        • CanvasContext.quadraticCurveTo
        • CanvasContext.rect
        • CanvasContext.restore
        • CanvasContext.rotate
        • CanvasContext.save
        • CanvasContext.scale
        • CanvasContext.setFillStyle
        • CanvasContext.setFontSize
        • CanvasContext.setGlobalAlpha
        • CanvasContext.setLineCap
        • CanvasContext.setLineDash
        • CanvasContext.setLineJoin
        • CanvasContext.setLineWidth
        • CanvasContext.setMiterLimit
        • CanvasContext.setShadow
        • CanvasContext.setStrokeStyle
        • CanvasContext.setTextAlign
        • CanvasContext.setTextBaseline
        • CanvasContext.setTransform
        • CanvasContext.stroke
        • CanvasContext.strokeRect
        • CanvasContext.strokeText
        • CanvasContext.transform
        • CanvasContext.translate
      • CanvasGradient
        • CanvasGradient.addColorStop
      • Color
      • Image
      • ImageData
      • OffscreenCanvas
        • OffscreenCanvas.createImage
        • OffscreenCanvas.getContext
      • Path2D
      • RenderingContext
    • Media
      • map
        • wx.createMapContext
        • MapContext
          • MapContext.addCustomLayer
          • MapContext.addGroundOverlay
          • MapContext.addMarkers
          • MapContext.fromScreenLocation
          • MapContext.getCenterLocation
          • MapContext.getRegion
          • MapContext.getRotate
          • MapContext.getScale
          • MapContext.getSkew
          • MapContext.includePoints
          • MapContext.initMarkerCluster
          • MapContext.moveAlong
          • MapContext.moveToLocation
          • MapContext.on
          • MapContext.openMapApp
          • MapContext.removeCustomLayer
          • MapContext.removeGroundOverlay
          • MapContext.removeMarkers
          • MapContext.setCenterOffset
          • MapContext.setLocMarkerIcon
          • MapContext.toScreenLocation
          • MapContext.translateMarker
          • MapContext.updateGroundOverlay
      • picture
        • wx.saveImageToPhotosAlbum
        • wx.previewMedia
        • wx.previewImage
        • wx.getImageInfo
        • wx.compressImage
        • wx.chooseMessageFile
        • wx.chooseImage
      • video
        • wx.saveVideoToPhotosAlbum
        • wx.openVideoEditor
        • wx.getVideoInfo
        • wx.createVideoContext
        • wx.compressVideo
        • wx.chooseVideo
        • wx.chooseMedia
        • VideoContext
          • VideoContext.exitBackgroundPlayback
          • VideoContext.exitFullScreen
          • VideoContext.exitPictureInPicture
          • VideoContext.hideStatusBar
          • VideoContext.pause
          • VideoContext.play
          • VideoContext.playbackRate
          • VideoContext.requestBackgroundPlayback
          • VideoContext.requestFullScreen
          • VideoContext.seek
          • VideoContext.sendDanmu
          • VideoContext.showStatusBar
          • VideoContext.stop
      • audio frequency
        • wx.stopVoice
        • wx.setInnerAudioOption
        • wx.playVoice
        • wx.pauseVoice
        • wx.getAvailableAudioSources
        • wx.createWebAudioContext
        • wx.createMediaAudioPlayer
        • wx.createInnerAudioContext
        • wx.createAudioContext
        • AudioBuffer
          • AudioBuffer.copyFromChannel
          • AudioBuffer.copyToChannel
          • AudioBuffer.getChannelData
        • AudioContext
          • AudioContext.pause
          • AudioContext.play
          • AudioContext.seek
          • AudioContext.setSrc
        • InnerAudioContext
          • InnerAudioContext.destroy
          • InnerAudioContext.offCanplay
          • InnerAudioContext.offEnded
          • InnerAudioContext.offError
          • InnerAudioContext.offPause
          • InnerAudioContext.offPlay
          • InnerAudioContext.offSeeked
          • InnerAudioContext.offSeeking
          • InnerAudioContext.offStop
          • InnerAudioContext.offTimeUpdate
          • InnerAudioContext.offWaiting