BLEPeripheralServer.offCharacteristicReadRequest
BLEPeripheralServer.offCharacteristicSubscribed
BLEPeripheralServer.offCharacteristicUnsubscribed
BLEPeripheralServer.offCharacteristicWriteRequest
BLEPeripheralServer.onCharacteristicReadRequest
BLEPeripheralServer.onCharacteristicSubscribed
BLEPeripheralServer.onCharacteristicUnsubscribed
BLEPeripheralServer.onCharacteristicWriteRequest
BLEPeripheralServer.removeService
BLEPeripheralServer.startAdvertising
BLEPeripheralServer.stopAdvertising
BLEPeripheralServer.writeCharacteristicValue
蓝牙-信标(Beacon)
wx.stopBeaconDiscovery
wx.startBeaconDiscovery
wx.onBeaconUpdate
wx.onBeaconServiceChange
wx.offBeaconUpdate
wx.offBeaconServiceChange
wx.getBeacons
BeaconInfo
NFC 读写
wx.getNFCAdapter
IsoDep
IsoDep.close
IsoDep.connect
IsoDep.getHistoricalBytes
IsoDep.getMaxTransceiveLength
IsoDep.isConnected
IsoDep.setTimeout
IsoDep.transceive
MifareClassic
MifareClassic.close
MifareClassic.connect
MifareClassic.getMaxTransceiveLength
MifareClassic.isConnected
MifareClassic.setTimeout
MifareClassic.transceive
MifareUltralight
MifareUltralight.close
MifareUltralight.connect
MifareUltralight.getMaxTransceiveLength
MifareUltralight.isConnected
MifareUltralight.setTimeout
MifareUltralight.transceive
Ndef.close
Ndef.connect
Ndef.isConnected
Ndef.offNdefMessage
Ndef.onNdefMessage
Ndef.setTimeout
Ndef.writeNdefMessage
NfcA.close
NfcA.connect
NfcA.getAtqa
NfcA.getMaxTransceiveLength
NfcA.getSak
NfcA.isConnected
NfcA.setTimeout
NfcA.transceive
NFCAdapter
NFCAdapter.getIsoDep
NFCAdapter.getMifareClassic
NFCAdapter.getMifareUltralight
NFCAdapter.getNdef
NFCAdapter.getNfcA
NFCAdapter.getNfcB
NFCAdapter.getNfcF
NFCAdapter.getNfcV
NFCAdapter.offDiscovered
NFCAdapter.onDiscovered
NFCAdapter.startDiscovery
NFCAdapter.stopDiscovery
NfcB.close
NfcB.connect
NfcB.getMaxTransceiveLength
NfcB.isConnected
NfcB.setTimeout
NfcB.transceive
NfcF.close
NfcF.connect
NfcF.getMaxTransceiveLength
NfcF.isConnected
NfcF.setTimeout
NfcF.transceive
NfcV.close
NfcV.connect
NfcV.getMaxTransceiveLength
NfcV.isConnected
NfcV.setTimeout
NfcV.transceive
Wi-Fi
wx.stopWifi
wx.startWifi
wx.setWifiList
wx.onWifiConnectedWithPartialInfo
wx.onWifiConnected
wx.onGetWifiList
wx.offWifiConnectedWithPartialInfo
wx.offWifiConnected
wx.offGetWifiList
wx.getWifiList
wx.getConnectedWifi
wx.connectWifi
WifiInfo
wx.addPhoneRepeatCalendar
wx.addPhoneCalendar
wx.chooseContact
wx.addPhoneContact
wx.checkIsOpenAccessibility
wx.getBatteryInfoSync
wx.getBatteryInfo
wx.setClipboardData
wx.getClipboardData
NFC 主机卡模拟
wx.stopHCE
wx.startHCE
wx.sendHCEMessage
wx.onHCEMessage
wx.offHCEMessage
wx.getHCEState
wx.onNetworkWeakChange
wx.onNetworkStatusChange
wx.offNetworkWeakChange
wx.offNetworkStatusChange
wx.getNetworkType
wx.getLocalIPAddress
wx.getRandomValues
wx.setVisualEffectOnCapture
wx.setScreenBrightness
wx.setKeepScreenOn
wx.onUserCaptureScreen
wx.onScreenRecordingStateChanged
wx.offUserCaptureScreen
wx.offScreenRecordingStateChanged
wx.getScreenRecordingState
wx.getScreenBrightness
wx.onKeyboardHeightChange
wx.offKeyboardHeightChange
wx.hideKeyboard
wx.getSelectedTextRange
wx.makePhoneCall
wx.stopAccelerometer
wx.startAccelerometer
wx.onAccelerometerChange
wx.offAccelerometerChange
wx.stopCompass
wx.startCompass
wx.onCompassChange
wx.offCompassChange
wx.stopDeviceMotionListening
wx.startDeviceMotionListening
wx.onDeviceMotionChange
wx.offDeviceMotionChange
wx.stopGyroscope
wx.startGyroscope
wx.onGyroscopeChange
wx.offGyroscopeChange
wx.onMemoryWarning
wx.offMemoryWarning
wx.scanCode
wx.sendSms
wx.vibrateShort
wx.vibrateLong
AI 推理
wx.getInferenceEnvInfo
wx.createInferenceSession
InferenceSession
InferenceSession.destroy
InferenceSession.offError
InferenceSession.offLoad
InferenceSession.onError
InferenceSession.onLoad
InferenceSession.run
Tensor
Tensors
wx.isVKSupport
wx.createVKSession
VKBodyAnchor
VKCamera
VKCamera.getProjectionMatrix
VKFaceAnchor
VKFrame
VKFrame.getCameraBuffer
VKFrame.getCameraTexture
VKFrame.getDisplayTransform
VKHandAnchor
VKMarkerAnchor
VKOCRAnchor
VKOSDAnchor
VKPlaneAnchor
VKSession
VKSession.addMarker
VKSession.addOSDMarker
VKSession.cancelAnimationFrame
VKSession.destroy
VKSession.detectBody
VKSession.detectFace
VKSession.detectHand
VKSession.getAllMarker
VKSession.getAllOSDMarker
VKSession.getVKFrame
VKSession.hitTest
VKSession.off
VKSession.on
VKSession.removeMarker
VKSession.removeOSDMarker
VKSession.requestAnimationFrame
VKSession.runOCR
VKSession.start
VKSession.stop
VKSession.update3DMode
VKSession.updateOSDThreshold
wx.stopFaceDetect
wx.initFaceDetect
wx.faceDetect
Worker
wx.createWorker
Worker
Worker.getCameraFrameData
Worker.onMessage
Worker.onProcessKilled
Worker.postMessage
Worker.terminate
Worker.testOnProcessKilled
wx.createSelectorQuery
wx.createIntersectionObserver
IntersectionObserver
IntersectionObserver.disconnect
IntersectionObserver.observe
IntersectionObserver.relativeTo
IntersectionObserver.relativeToViewport
MediaQueryObserver
MediaQueryObserver.disconnect
MediaQueryObserver.observe
NodesRef
NodesRef.boundingClientRect
NodesRef.context
NodesRef.fields
NodesRef.node
NodesRef.scrollOffset
SelectorQuery
SelectorQuery.exec
SelectorQuery.in
SelectorQuery.select
SelectorQuery.selectAll
SelectorQuery.selectViewport
第三方平台
wx.getExtConfigSync
wx.getExtConfig
wx.createRewardedVideoAd
wx.createInterstitialAd
InterstitialAd
InterstitialAd.destroy
InterstitialAd.load
InterstitialAd.offClose
InterstitialAd.offError
InterstitialAd.offLoad
InterstitialAd.onClose
InterstitialAd.onError
InterstitialAd.onLoad
InterstitialAd.show
RewardedVideoAd
RewardedVideoAd.destroy
RewardedVideoAd.load
RewardedVideoAd.offClose
RewardedVideoAd.offError
RewardedVideoAd.offLoad
RewardedVideoAd.onClose
RewardedVideoAd.onError
RewardedVideoAd.onLoad
RewardedVideoAd.show
wx.setNavigationBarTitle(Object object)
以
Promise 风格
调用
:支持
需要页面权限
:当前是插件页面时,宿主小程序不能调用该接口,反之亦然
小程序插件
:支持,需要小程序基础库版本不低于
2.1.0
在小程序插件中使用时,只能在当前插件的页面中调用
微信 Windows 版
:支持
微信 Mac 版
:支持
功能描述
动态设置当前页面的标题
参数
Object object
属性
|
类型
|
默认值
|
必填
|
说明
|
title
|
string
|
|
是
|
页面标题
|
success
|
function
|
|
否
|
接口调用成功的回调函数
|
fail
|
function
|
|
否
|
接口调用失败的回调函数
|
complete
|
function
|
|
否
|
接口调用结束的回调函数(调用成功、失败都会执行)
|
示例代码