6119 lines
135 KiB
TypeScript
Raw Normal View History

2021-07-21 23:11:13 +08:00
interface CanvasContext {
/**
*
*/
addColorStop: () => void;
/**
* 线
*/
arc: () => void;
/**
* fill或者stroke才会使用路径进行填充或描边
*/
beginPath: () => void;
/**
* 线
*/
bezierCurveTo: () => void;
/**
*
*/
clearActions: () => void;
/**
*
*/
clearRect: () => void;
/**
* clip() 访使 clip() 使 save() restore()
*/
clip: () => void;
/**
*
*/
closePath: () => void;
/**
*
*/
createCircularGradient: () => void;
/**
* 线
*/
createLinearGradient: () => void;
/**
* canvas
*/
draw: () => void;
/**
*
*/
drawImage: () => void;
/**
*
*/
fill: () => void;
/**
*
*/
fillRect: () => void;
/**
*
*/
fillText: () => void;
/**
* const ctx = wx.createCanvasContext('myCanvas')
*/
lineTo: () => void;
/**
* 线
*/
moveTo: () => void;
/**
* 线
*/
quadraticCurveTo: () => void;
/**
*
*/
rect: () => void;
/**
* [translate](#translate)`rotate`
*/
rotate: () => void;
/**
*
*/
save: () => void;
/**
* `scale``scale`
*/
scale: () => void;
/**
*
*/
setFillStyle: () => void;
/**
*
*/
setFontSize: () => void;
/**
*
*/
setGlobalAlpha: () => void;
/**
* 线
*/
setLineCap: () => void;
/**
* 线
*/
setLineDash: () => void;
/**
* 线
*/
setLineJoin: () => void;
/**
* 线
*/
setLineWidth: () => void;
/**
* 线 `setLineJoin()` miter lineJoin bevel
*/
setMiterLimit: () => void;
/**
*
*/
setShadow: () => void;
/**
*
*/
setStrokeStyle: () => void;
/**
*
*/
setTextAlign: () => void;
/**
*
*/
setTextBaseline: () => void;
/**
*
*/
stroke: () => void;
/**
* ()
*/
strokeRect: () => void;
/**
* (0, 0)
*/
translate: () => void;
}
interface _writeBLECharacteristicValueObject {
/**
* id device
*/
deviceId: string;
/**
* uuid
*/
serviceId: string;
/**
* uuid
*/
characteristicId: string;
/**
*
*/
value: any;
/**
*
*/
success: (result: _writeBLECharacteristicValueSuccessObject) => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _writeBLECharacteristicValueSuccessObject {
/**
* ok
*/
errMsg: string;
}
interface _vibrateShortObject {
/**
*
*/
success: () => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _vibrateLongObject {
/**
*
*/
success: () => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _uploadFileObject {
/**
* url
*/
url: string;
/**
*
*/
filePath: string;
/**
* key , key
*/
name: string;
/**
* HTTP Header, header Referer
*/
header: object;
/**
* HTTP form data
*/
formData: object;
/**
*
*/
success: (result: _uploadFileSuccessObject) => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _uploadFileSuccessObject {
/**
*
*/
data: string;
/**
* HTTP
*/
statusCode: number;
}
interface _updateShareMenuObject {
/**
* 使 shareTicket [](./share.md#)
*/
withShareTicket: boolean;
/**
*
*/
success: () => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _switchTabObject {
/**
* tabBar app.json [tabBar](../framework/config.md#tabbar)
*/
url: string;
/**
*
*/
success: () => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _stopWifiObject {
/**
*
*/
success: () => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _stopHCEObject {
/**
*
*/
success: (result: _stopHCESuccessObject) => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _stopHCESuccessObject {
/**
*
*/
errMsg: string;
/**
*
*/
errCode: number;
}
interface _stopCompassObject {
/**
*
*/
success: () => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _stopBluetoothDevicesDiscoveryObject {
/**
*
*/
success: (result: _stopBluetoothDevicesDiscoverySuccessObject) => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _stopBluetoothDevicesDiscoverySuccessObject {
/**
* ok
*/
errMsg: string;
}
interface _stopBeaconDiscoveryObject {
/**
*
*/
success: (result: _stopBeaconDiscoverySuccessObject) => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _stopBeaconDiscoverySuccessObject {
/**
*
*/
errMsg: string;
}
interface _stopAccelerometerObject {
/**
*
*/
success: () => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _startWifiObject {
/**
*
*/
success: () => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _startSoterAuthenticationObject {
/**
* 使
*/
requestAuthModes: any;
/**
* result_json的一部分
*/
challenge: string;
/**
*
*/
authContent: string;
/**
*
*/
success: (result: _startSoterAuthenticationSuccessObject) => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _startSoterAuthenticationSuccessObject {
/**
*
*/
errCode: number;
/**
*
*/
authMode: string;
/**
* TEETEE名称版本号等以及防重放参数Android支持IDAndroid支持ID
*/
resultJSON: string;
/**
* SOTER安全密钥对result_json的签名(SHA256withRSA/PSS, saltlen=20)
*/
resultJSONSignature: string;
/**
*
*/
errMsg: string;
}
interface _startRecordObject {
/**
* res = {tempFilePath: '录音文件的临时路径'}
*/
success: (result: _startRecordSuccessObject) => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _startRecordSuccessObject {
/**
*
*/
tempFilePath: any;
}
interface _startPullDownRefreshObject {
/**
*
*/
success: (result: _startPullDownRefreshSuccessObject) => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _startPullDownRefreshSuccessObject {
/**
*
*/
errMsg: string;
}
interface _startHCEObject {
/**
* AID AID String
*/
aid_list: any;
/**
*
*/
success: (result: _startHCESuccessObject) => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _startHCESuccessObject {
/**
*
*/
errMsg: string;
/**
*
*/
errCode: number;
}
interface _startCompassObject {
/**
*
*/
success: () => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _startBluetoothDevicesDiscoveryObject {
/**
* service uuid
*/
services: any;
/**
* onDeviceFound RSSI
*/
allowDuplicatesKey: boolean;
/**
* 0
*/
interval: number;
/**
*
*/
success: (result: _startBluetoothDevicesDiscoverySuccessObject) => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _startBluetoothDevicesDiscoverySuccessObject {
/**
* ok
*/
errMsg: string;
}
interface _startBeaconDiscoveryObject {
/**
* iBeacon设备广播的 uuids
*/
uuids: any;
/**
*
*/
success: (result: _startBeaconDiscoverySuccessObject) => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _startBeaconDiscoverySuccessObject {
/**
*
*/
errMsg: string;
}
interface _startAccelerometerObject {
/**
*
*/
success: () => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _showToastObject {
/**
*
*/
title: string;
/**
* "success", "loading", "none"
*/
icon: string;
/**
* image icon
*/
image: string;
/**
* 1500
*/
duration: number;
/**
* 穿false
*/
mask: boolean;
/**
*
*/
success: () => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _showTabBarRedDotObject {
/**
* tabBar的哪一项
*/
index: number;
/**
*
*/
success: () => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _showTabBarObject {
/**
*
*/
aniamtion: boolean;
/**
*
*/
success: () => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _showShareMenuObject {
/**
* 使 shareTicket [](./share.md#)
*/
withShareTicket: boolean;
/**
*
*/
success: () => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _showModalObject {
/**
*
*/
title: string;
/**
*
*/
content: string;
/**
* true
*/
showCancel: boolean;
/**
* "取消" 4
*/
cancelText: string;
/**
* "#000000"
*/
cancelColor: any;
/**
* "确定" 4
*/
confirmText: string;
/**
* "#3CC51F"
*/
confirmColor: any;
/**
*
*/
success: (result: _showModalSuccessObject) => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _showModalSuccessObject {
/**
* true
*/
confirm: boolean;
/**
* true Android
*/
cancel: boolean;
}
interface _showLoadingObject {
/**
*
*/
title: string;
/**
* 穿false
*/
mask: boolean;
/**
*
*/
success: () => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _showActionSheetObject {
/**
* 6
*/
itemList: any;
/**
* "#000000"
*/
itemColor: any;
/**
*
*/
success: (result: _showActionSheetSuccessObject) => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _showActionSheetSuccessObject {
/**
* 0
*/
tapIndex: number;
}
interface _setWifiListObject {
/**
* Wi-Fi
*/
wifiList: any;
/**
*
*/
success: () => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _setTopBarTextObject {
/**
*
*/
text: string;
/**
*
*/
success: () => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _setTabBarStyleObject {
/**
* tab
*/
color: any;
/**
* tab
*/
selectedColor: any;
/**
* tab
*/
backgroundColor: any;
/**
* tabbar上边框的颜色 black/white
*/
borderStyle: string;
/**
*
*/
success: () => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _setTabBarItemObject {
/**
* tabBar
*/
index: number;
/**
* tab
*/
text: string;
/**
* icon 40kb 81px * 81px postion top
*/
iconPath: string;
/**
* icon 40kb 81px * 81px postion top
*/
selectedIconPath: string;
/**
*
*/
success: () => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _setTabBarBadgeObject {
/**
* tabBar的哪一项
*/
index: number;
/**
* 3
*/
text: string;
/**
*
*/
success: () => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _setStorageObject {
/**
* key
*/
key: string;
/**
*
*/
data: any;
/**
*
*/
success: () => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _setScreenBrightnessObject {
/**
* 0~10 1
*/
value: number;
/**
*
*/
success: () => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _setNavigationBarTitleObject {
/**
*
*/
title: string;
/**
*
*/
success: () => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _setNavigationBarColorObject {
/**
* #ffffff #000000
*/
frontColor: string;
/**
*
*/
backgroundColor: string;
/**
*
*/
animation: object;
/**
*
*/
success: (result: _setNavigationBarColorSuccessObject) => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _setNavigationBarColorSuccessObject {
/**
*
*/
errMsg: string;
}
interface _setKeepScreenOnObject {
/**
*
*/
keepScreenOn: boolean;
/**
*
*/
success: (result: _setKeepScreenOnSuccessObject) => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _setKeepScreenOnSuccessObject {
/**
*
*/
errMsg: string;
}
interface _setEnableDebugObject {
/**
*
*/
enableDebug: boolean;
/**
*
*/
success: (result: _setEnableDebugSuccessObject) => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _setEnableDebugSuccessObject {
/**
*
*/
errMsg: string;
}
interface _setClipboardDataObject {
/**
*
*/
data: string;
/**
*
*/
success: () => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _sendSocketMessageObject {
/**
*
*/
data: any;
/**
*
*/
success: () => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _sendHCEMessageObject {
/**
*
*/
data: any;
/**
*
*/
success: (result: _sendHCEMessageSuccessObject) => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _sendHCEMessageSuccessObject {
/**
*
*/
errMsg: string;
/**
*
*/
errCode: number;
}
interface _seekBackgroundAudioObject {
/**
*
*/
position: number;
/**
*
*/
success: () => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _scanCodeObject {
/**
*
*/
onlyFromCamera: boolean;
/**
* 'qrCode''barCode'DataMatrix是datamatrixpdf417是pdf417
*/
scanType: any;
/**
*
*/
success: (result: _scanCodeSuccessObject) => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _scanCodeSuccessObject {
/**
*
*/
result: any;
/**
*
*/
scanType: any;
/**
*
*/
charSet: any;
/**
* path
*/
path: any;
}
interface _saveVideoToPhotosAlbumObject {
/**
*
*/
filePath: string;
/**
*
*/
success: (result: _saveVideoToPhotosAlbumSuccessObject) => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _saveVideoToPhotosAlbumSuccessObject {
/**
*
*/
errMsg: string;
}
interface _saveImageToPhotosAlbumObject {
/**
*
*/
filePath: string;
/**
*
*/
success: (result: _saveImageToPhotosAlbumSuccessObject) => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _saveImageToPhotosAlbumSuccessObject {
/**
*
*/
errMsg: string;
}
interface _saveFileObject {
/**
*
*/
tempFilePath: string;
/**
* res = {savedFilePath: '文件的保存路径'}
*/
success: (result: _saveFileSuccessObject) => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _saveFileSuccessObject {
/**
*
*/
savedFilePath: any;
}
interface _requestPaymentObject {
/**
* appId
*/
appId:number;
/**
*
*/
pkgName:string;
/**
* qg.login成功时获得的用户token
*/
token:string;
/**
* 时间戳从1970年1月1日00:00:00,
*/
timeStamp: string;
/**
*
*/
orderNo:string;
/**
* CP服务端生成paySign CP 使 appKey ( appId )orderNotimestamp "统一下单接口"
*/
paySign:string;
/**
*
*/
success: () => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _requestObject {
/**
*
*/
url: string;
/**
*
*/
data: any;
/**
* headerheader Referer
*/
header: object;
/**
* OPTIONS, GET, HEAD, POST, PUT, DELETE, TRACE, CONNECT
*/
method: string;
/**
* json JSON.parse
*/
dataType: string;
/**
* textarraybuffer
*/
responseType: string;
/**
*
*/
success: (result: _requestSuccessObject) => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _requestSuccessObject {
/**
*
*/
data: any;
/**
* HTTP
*/
statusCode: number;
/**
* HTTP Response Header
*/
header: object;
}
interface _removeTabBarBadgeObject {
/**
* tabBar的哪一项
*/
index: number;
/**
*
*/
success: () => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _removeStorageObject {
/**
* key
*/
key: string;
/**
*
*/
success: () => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _removeSavedFileObject {
/**
*
*/
filePath: string;
/**
*
*/
success: () => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _redirectToObject {
/**
* tabBar 使`?``=``&` 'path?key=value&key2=value2'
*/
url: string;
/**
*
*/
success: () => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _readBLECharacteristicValueObject {
/**
* id device
*/
deviceId: string;
/**
* uuid
*/
serviceId: string;
/**
* uuid
*/
characteristicId: string;
/**
*
*/
success: (result: _readBLECharacteristicValueSuccessObject) => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _readBLECharacteristicValueSuccessObject {
/**
*
*/
errCode: number;
/**
* ok
*/
errMsg: string;
}
interface _reLaunchObject {
/**
* , 使`?``=``&` 'path?key=value&key2=value2' tabBar
*/
url: string;
/**
*
*/
success: () => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _previewImageObject {
/**
* urls
*/
current: string;
/**
*
*/
urls: any;
/**
*
*/
success: () => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _playVoiceObject {
/**
*
*/
filePath: string;
/**
* 60
*/
duration: number;
/**
*
*/
success: () => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _playBackgroundAudioObject {
/**
* m4a, aac, mp3, wav
*/
dataUrl: string;
/**
*
*/
title: string;
/**
* URL
*/
coverImgUrl: string;
/**
*
*/
success: () => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _pageScrollToObject {
/**
* px
*/
scrollTop: number;
/**
* 300ms ms
*/
duration: number;
}
interface _openSettingObject {
/**
*
*/
success: (result: _openSettingSuccessObject) => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _openSettingSuccessObject {
/**
* key scope value Bool [scope ](./authorize-index.md#scope-)
*/
authSetting: object;
}
interface _openLocationObject {
/**
* -90~90
*/
latitude: any;
/**
* -180~180西
*/
longitude: any;
/**
* 5~1818
*/
scale: any;
/**
*
*/
name: string;
/**
*
*/
address: string;
/**
*
*/
success: () => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _openDocumentObject {
/**
* downFile
*/
filePath: any;
/**
* doc, xls, ppt, pdf, docx, xlsx, pptx
*/
fileType: any;
/**
*
*/
success: any;
/**
*
*/
fail: any;
/**
*
*/
complete: any;
}
interface _openCardObject {
/**
* [openCard ](#opencard-)
*/
cardList: any;
/**
*
*/
success: () => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _openBluetoothAdapterObject {
/**
*
*/
success: () => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _onWifiConnectedCallbackResult {
/**
* Wi-Fi
*/
wifi: object;
}
interface _onUserCaptureScreenCallbackResult {}
interface _onSocketMessageCallbackResult {
/**
*
*/
data: any;
}
interface _onNetworkStatusChangeCallbackResult {
/**
*
*/
isConnected: boolean;
/**
*
*/
networkType: string;
}
interface _onHCEMessageCallbackResult {
/**
*
*/
messageType: number;
/**
* NFC `messageType=1`
*/
data: any;
/**
* `messageType=2`
*/
reason: number;
}
interface _onGetWifiListCallbackResult {
/**
* Wi-Fi
*/
wifiList: any;
}
interface _onEvaluateWifiCallbackResult {
/**
* Wi-Fi
*/
wifi: object;
}
interface _onCompassChangeCallbackResult {
/**
*
*/
direction: number;
}
interface _onBluetoothDeviceFoundCallbackResult {
/**
*
*/
devices: any;
}
interface _onBluetoothAdapterStateChangeCallbackResult {
/**
*
*/
available: boolean;
/**
*
*/
discovering: boolean;
}
interface _onBeaconUpdateCallbackResult {
/**
* iBeacon
*/
beacons: any;
}
interface _onBeaconServiceChangeCallbackResult {
/**
*
*/
available: boolean;
/**
*
*/
discovering: boolean;
}
interface _onBLEConnectionStateChangeCallbackResult {
/**
* id device
*/
deviceId: string;
/**
*
*/
connected: boolean;
}
interface _onBLECharacteristicValueChangeCallbackResult {
/**
* id device
*/
deviceId: string;
/**
* uuid
*/
serviceId: string;
/**
* uuid
*/
characteristicId: string;
/**
* **vConsole ArrayBuffer **
*/
value: any;
}
interface _onAccelerometerChangeCallbackResult {
/**
* X
*/
x: number;
/**
* Y
*/
y: number;
/**
* Z
*/
z: number;
}
interface _notifyBLECharacteristicValueChangeObject {
/**
* id device
*/
deviceId: string;
/**
* uuid
*/
serviceId: string;
/**
* uuid
*/
characteristicId: string;
/**
* true: notify; false: notify
*/
state: boolean;
/**
*
*/
success: (result: _notifyBLECharacteristicValueChangeSuccessObject) => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _notifyBLECharacteristicValueChangeSuccessObject {
/**
* ok
*/
errMsg: string;
}
interface _navigateToMiniProgramObject {
/**
* appId
*/
appId: string;
/**
*
*/
path: string;
/**
* `App.onLaunch()``App.onShow()` [](../framework/app-service/app.md)
*/
extraData: object;
/**
* developtrialrelease release
*/
envVersion: string;
/**
*
*/
success: (result: _navigateToMiniProgramSuccessObject) => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _navigateToMiniProgramSuccessObject {
/**
*
*/
errMsg: string;
}
interface _navigateToObject {
/**
* tabBar , 使`?``=``&` 'path?key=value&key2=value2'
*/
url: string;
/**
*
*/
success: () => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _navigateBackMiniProgramObject {
/**
* `App.onShow()` [](../framework/app-service/app.md)
*/
extraData: object;
/**
*
*/
success: (result: _navigateBackMiniProgramSuccessObject) => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _navigateBackMiniProgramSuccessObject {
/**
*
*/
errMsg: string;
}
interface _navigateBackObject {
/**
* delta
*/
delta: number;
}
interface _makeVoIPCallObject {
/**
*
*/
allowBackCamera: boolean;
/**
*
*/
showOther: boolean;
/**
*
*/
avatarUrl: string;
/**
*
*/
context: string;
/**
*
*/
success: () => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _makePhoneCallObject {
/**
*
*/
phoneNumber: string;
/**
*
*/
success: () => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _loginObject {
/**
*
*/
pkgName: string;
/**
*
*/
success: (result: _loginSuccessObject) => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _loginSuccessObject {
/**
*
*/
errMsg: string;
/**
* api使 code openid session_key
*/
code: string;
}
interface _hideTabBarRedDotObject {
/**
* tabBar的哪一项
*/
index: number;
/**
*
*/
success: () => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _hideTabBarObject {
/**
*
*/
aniamtion: boolean;
/**
*
*/
success: () => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _hideShareMenuObject {
/**
*
*/
success: () => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _getWifiListObject {
/**
*
*/
success: () => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _getWeRunDataObject {
/**
*
*/
success: (result: _getWeRunDataSuccessObject) => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _getWeRunDataSuccessObject {
/**
*
*/
errMsg: string;
/**
* [](./signature.md#)
*/
encryptedData: string;
/**
* [](./signature.md#)
*/
iv: string;
}
interface _getUserInfoObject {
/**
*
*/
withCredentials: boolean;
/**
* zh_CN zh_TW en en
*/
lang: string;
/**
*
*/
success: (result: _getUserInfoSuccessObject) => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _getUserInfoSuccessObject {
/**
* openid
*/
userInfo: object;
/**
*
*/
rawData: string;
/**
* 使 sha1( rawData + sessionkey ) [signature](./signature.md)
*/
signature: string;
/**
* [](./signature.md#)
*/
encryptedData: string;
/**
* [](./signature.md#)
*/
iv: string;
}
interface _getSystemInfoSyncReturnValue {
/**
*
*/
brand: any;
/**
*
*/
model: any;
/**
*
*/
pixelRatio: any;
/**
*
*/
screenWidth: any;
/**
*
*/
screenHeight: any;
/**
* 使
*/
windowWidth: any;
/**
* 使
*/
windowHeight: any;
/**
*
*/
statusBarHeight: any;
/**
*
*/
language: any;
/**
*
*/
version: any;
/**
*
*/
system: any;
/**
*
*/
platform: any;
/**
* ---px
*/
fontSizeSetting: any;
/**
*
*/
SDKVersion: any;
}
interface _getSystemInfoObject {
/**
*
*/
success: (result: _getSystemInfoSuccessObject) => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _getSystemInfoSuccessObject {
/**
*
*/
brand: any;
/**
*
*/
model: any;
/**
*
*/
pixelRatio: any;
/**
*
*/
screenWidth: any;
/**
*
*/
screenHeight: any;
/**
* 使
*/
windowWidth: any;
/**
* 使
*/
windowHeight: any;
/**
*
*/
statusBarHeight: any;
/**
*
*/
language: any;
/**
*
*/
version: any;
/**
*
*/
system: any;
/**
*
*/
platform: any;
/**
* ---px
*/
fontSizeSetting: any;
/**
*
*/
SDKVersion: any;
}
interface _getStorageInfoObject {
/**
*
*/
success: (result: _getStorageInfoSuccessObject) => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _getStorageInfoSuccessObject {
/**
* storage中所有的key
*/
keys: any;
/**
* , kb
*/
currentSize: number;
/**
* kb
*/
limitSize: number;
}
interface _getStorageObject {
/**
* key
*/
key: string;
/**
* ,res = {data: key对应的内容}
*/
success: (result: _getStorageSuccessObject) => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _getStorageSuccessObject {
/**
* key对应的内容
*/
data: string;
}
interface _getShareInfoObject {
/**
* shareTicket
*/
shareTicket: string;
/**
*
*/
success: (result: _getShareInfoSuccessObject) => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _getShareInfoSuccessObject {
/**
*
*/
errMsg: string;
/**
* [](./signature.md#)
*/
encryptedData: string;
/**
* [](./signature.md#)
*/
iv: string;
}
interface _getSettingObject {
/**
*
*/
success: (result: _getSettingSuccessObject) => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _getSettingSuccessObject {
/**
* key scope value Bool [scope ](./authorize-index.md#scope-)
*/
authSetting: object;
}
interface _getScreenBrightnessObject {
/**
*
*/
success: (result: _getScreenBrightnessSuccessObject) => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _getScreenBrightnessSuccessObject {
/**
* 0~10 1
*/
value: number;
}
interface _getSavedFileListObject {
/**
* `success返回参数说明`
*/
success: (result: _getSavedFileListSuccessObject) => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _getSavedFileListSuccessObject {
/**
*
*/
errMsg: string;
/**
*
*/
fileList: any;
}
interface _getSavedFileInfoObject {
/**
*
*/
filePath: string;
/**
* `success返回参数说明`
*/
success: (result: _getSavedFileInfoSuccessObject) => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _getSavedFileInfoSuccessObject {
/**
*
*/
errMsg: string;
/**
* B
*/
size: number;
/**
* 1970/01/01 08:00:00
*/
createTime: number;
}
interface _getOpenDeviceIdObject {
/**
*
*/
success: (result: _getOpenDeviceIdSuccessObject) => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _getOpenDeviceIdSuccessObject {
/**
*
*/
errMsg: string;
/**
* [](./signature.md#)
*/
encryptedData: string;
/**
* [](./signature.md#)
*/
iv: string;
}
interface _getNetworkTypeObject {
/**
* networkType
*/
success: (result: _getNetworkTypeSuccessObject) => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _getNetworkTypeSuccessObject {
/**
*
*/
networkType: any;
}
interface _getLocationObject {
/**
* wgs84 gps gcj02 `wx.openLocation`
*/
type: string;
/**
* true
*/
altitude: boolean;
/**
*
*/
success: (result: _getLocationSuccessObject) => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _getLocationSuccessObject {
/**
* -90~90
*/
latitude: any;
/**
* -180~180西
*/
longitude: any;
/**
* m/s
*/
speed: any;
/**
*
*/
accuracy: any;
/**
* m
*/
altitude: any;
/**
* mAndroid 0
*/
verticalAccuracy: any;
/**
* m
*/
horizontalAccuracy: any;
}
interface _getImageInfoObject {
/**
*
*/
src: string;
/**
*
*/
success: (result: _getImageInfoSuccessObject) => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _getImageInfoSuccessObject {
/**
* px
*/
width: number;
/**
* px
*/
height: number;
/**
*
*/
path: string;
}
interface _getHCEStateObject {
/**
*
*/
success: (result: _getHCEStateSuccessObject) => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _getHCEStateSuccessObject {
/**
*
*/
errMsg: string;
/**
*
*/
errCode: number;
}
interface _getFileInfoObject {
/**
*
*/
filePath: string;
/**
* md5md5sha1
*/
digestAlgorithm: string;
/**
*
*/
success: (result: _getFileInfoSuccessObject) => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _getFileInfoSuccessObject {
/**
* B
*/
size: number;
/**
* digestAlgorithm
*/
digest: string;
/**
*
*/
errMsg: string;
}
interface _getExtConfigSyncReturnValue {
/**
*
*/
extConfig: object;
}
interface _getExtConfigObject {
/**
*
*/
success: (result: _getExtConfigSuccessObject) => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _getExtConfigSuccessObject {
/**
*
*/
errMsg: string;
/**
*
*/
extConfig: object;
}
interface _getConnectedWifiObject {
/**
*
*/
success: (result: _getConnectedWifiSuccessObject) => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _getConnectedWifiSuccessObject {
/**
* Wi-Fi
*/
wifi: object;
}
interface _getConnectedBluetoothDevicesObject {
/**
* service uuid
*/
services: any;
/**
*
*/
success: (result: _getConnectedBluetoothDevicesSuccessObject) => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _getConnectedBluetoothDevicesSuccessObject {
/**
*
*/
devices: any;
/**
* ok
*/
errMsg: string;
}
interface _getClipboardDataObject {
/**
*
*/
success: (result: _getClipboardDataSuccessObject) => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _getClipboardDataSuccessObject {
/**
*
*/
data: string;
}
interface _getBluetoothDevicesObject {
/**
*
*/
success: (result: _getBluetoothDevicesSuccessObject) => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _getBluetoothDevicesSuccessObject {
/**
* uuid
*/
devices: any;
/**
* ok
*/
errMsg: string;
}
interface _getBluetoothAdapterStateObject {
/**
*
*/
success: (result: _getBluetoothAdapterStateSuccessObject) => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _getBluetoothAdapterStateSuccessObject {
/**
*
*/
discovering: boolean;
/**
*
*/
available: boolean;
/**
* ok
*/
errMsg: string;
}
interface _getBeaconsObject {
/**
*
*/
success: (result: _getBeaconsSuccessObject) => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _getBeaconsSuccessObject {
/**
* iBeacon
*/
beacons: any;
/**
*
*/
errMsg: string;
}
interface _getBackgroundAudioPlayerStateObject {
/**
*
*/
success: (result: _getBackgroundAudioPlayerStateSuccessObject) => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _getBackgroundAudioPlayerStateSuccessObject {
/**
* s
*/
duration: any;
/**
* s
*/
currentPosition: any;
/**
* 210
*/
status: any;
/**
* 80 80%
*/
downloadPercent: any;
/**
*
*/
dataUrl: any;
}
interface _getBackgroundAudioManagerReturnValue {
/**
* s src
*/
duration: number;
/**
* s src
*/
currentTime: number;
/**
* true false
*/
paused: boolean;
/**
* ** src ** m4a, aac, mp3, wav
*/
src: string;
/**
* s
*/
startTime: number;
/**
*
*/
buffered: number;
/**
* 使
*/
title: string;
/**
* 使
*/
epname: string;
/**
* 使
*/
singer: string;
/**
* url使
*/
coverImgUrl: string;
/**
* 使
*/
webUrl: string;
/**
*
*/
play: () => void;
/**
*
*/
pause: () => void;
/**
*
*/
stop: () => void;
/**
* s
*/
seek: () => void;
/**
*
*/
onCanplay: () => void;
/**
*
*/
onPlay: () => void;
/**
*
*/
onPause: () => void;
/**
*
*/
onStop: () => void;
/**
*
*/
onEnded: () => void;
/**
*
*/
onTimeUpdate: () => void;
/**
* iOS only
*/
onPrev: () => void;
/**
* iOS only
*/
onNext: () => void;
/**
*
*/
onError: () => void;
/**
*
*/
onWaiting: () => void;
}
interface _getBLEDeviceServicesObject {
/**
* id getDevices
*/
deviceId: string;
/**
*
*/
success: (result: _getBLEDeviceServicesSuccessObject) => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _getBLEDeviceServicesSuccessObject {
/**
*
*/
services: any;
/**
* ok
*/
errMsg: string;
}
interface _getBLEDeviceCharacteristicsObject {
/**
* id device
*/
deviceId: string;
/**
* uuid
*/
serviceId: string;
/**
*
*/
success: (result: _getBLEDeviceCharacteristicsSuccessObject) => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _getBLEDeviceCharacteristicsSuccessObject {
/**
*
*/
characteristics: any;
/**
* ok
*/
errMsg: string;
}
interface _downloadFileObject {
/**
* url
*/
url: string;
/**
* HTTP HeaderHeader Referer
*/
header: object;
/**
*
*/
filePath?:string;
/**
*
*/
success: (result: _downloadFileSuccessObject) => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _downloadFileSuccessObject {
/**
*
*/
tempFilePath: string;
/**
* HTTP
*/
statusCode: number;
/**
*
*/
errCode:string;
/**
*
*/
errMsg:number;
}
interface _createBLEConnectionObject {
/**
* id getDevices
*/
deviceId: string;
/**
*
*/
success: (result: _createBLEConnectionSuccessObject) => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _createBLEConnectionSuccessObject {
/**
* ok
*/
errMsg: string;
}
interface _createAnimationObject {
/**
* ms
*/
duration: any;
/**
*
*/
timingFunction: string;
/**
* ms
*/
delay: any;
/**
* transform-origin
*/
transformOrigin: string;
}
interface _connectWifiObject {
/**
* Wi-Fi ssid
*/
SSID: string;
/**
* Wi-Fi bssid
*/
BSSID: string;
/**
* Wi-Fi
*/
password: string;
/**
*
*/
success: () => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _connectSocketObject {
/**
* wss
*/
url: string;
/**
* HTTP Header , header Referer
*/
header: object;
/**
* GETOPTIONS, GET, HEAD, POST, PUT, DELETE, TRACE, CONNECT
*/
method: string;
/**
*
*/
protocols: any;
/**
*
*/
success: () => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _closeSocketObject {
/**
* 1000
*/
code: number;
/**
* 123UTF-8
*/
reason: string;
/**
*
*/
success: () => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _closeBluetoothAdapterObject {
/**
*
*/
success: () => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _closeBLEConnectionObject {
/**
* id getDevices
*/
deviceId: string;
/**
*
*/
success: (result: _closeBLEConnectionSuccessObject) => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _closeBLEConnectionSuccessObject {
/**
* ok
*/
errMsg: string;
}
interface _chooseVideoObject {
/**
* album camera 使['album', 'camera']
*/
sourceType: any;
/**
* true
*/
compressed: any;
/**
* 60
*/
maxDuration: number;
/**
*
*/
success: (result: _chooseVideoSuccessObject) => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _chooseVideoSuccessObject {
/**
*
*/
tempFilePath: any;
/**
*
*/
duration: any;
/**
*
*/
size: any;
/**
*
*/
height: any;
/**
*
*/
width: any;
}
interface _chooseLocationObject {
/**
*
*/
success: (result: _chooseLocationSuccessObject) => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _chooseLocationSuccessObject {
/**
*
*/
name: any;
/**
*
*/
address: any;
/**
* -90~90
*/
latitude: any;
/**
* -180~180西
*/
longitude: any;
}
interface _chooseInvoiceTitleObject {
/**
*
*/
success: (result: _chooseInvoiceTitleSuccessObject) => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _chooseInvoiceTitleSuccessObject {
/**
* 01
*/
type: string;
/**
*
*/
title: string;
/**
*
*/
taxNumber: string;
/**
*
*/
companyAddress: string;
/**
*
*/
telephone: string;
/**
*
*/
bankName: string;
/**
*
*/
bankAccount: string;
/**
*
*/
errMsg: string;
}
interface _chooseImageObject {
/**
* 9
*/
count: number;
/**
* original compressed
*/
sizeType: any;
/**
* album camera 使
*/
sourceType: any;
/**
* tempFilePaths
*/
success: (result: _chooseImageSuccessObject) => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _chooseImageSuccessObject {
/**
*
*/
tempFilePaths: any;
/**
* File
*/
tempFiles: any;
}
interface _chooseContactObject {
/**
*
*/
success: (result: _chooseContactSuccessObject) => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _chooseContactSuccessObject {
/**
*
*/
phoneNumber: any;
/**
*
*/
displayName: any;
}
interface _chooseAddressObject {
/**
*
*/
success: (result: _chooseAddressSuccessObject) => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _chooseAddressSuccessObject {
/**
*
*/
errMsg: string;
/**
*
*/
userName: string;
/**
*
*/
postalCode: string;
/**
*
*/
provinceName: string;
/**
*
*/
cityName: string;
/**
*
*/
countyName: string;
/**
*
*/
detailInfo: string;
/**
*
*/
nationalCode: string;
/**
*
*/
telNumber: string;
}
interface _checkSessionObject {
/**
*
*/
success: () => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _checkIsSupportSoterAuthenticationObject {
/**
*
*/
success: (result: _checkIsSupportSoterAuthenticationSuccessObject) => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _checkIsSupportSoterAuthenticationSuccessObject {
/**
* SOTER识别的生物识别方式
*/
supportMode: any;
/**
*
*/
errMsg: string;
}
interface _checkIsSoterEnrolledInDeviceObject {
/**
*
*/
checkAuthMode: string;
/**
*
*/
success: (result: _checkIsSoterEnrolledInDeviceSuccessObject) => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _checkIsSoterEnrolledInDeviceSuccessObject {
/**
*
*/
isEnrolled: boolean;
/**
*
*/
errMsg: string;
}
interface _canvasToTempFilePathObject {
/**
* x轴起点0
*/
x: number;
/**
* y轴起点0
*/
y: number;
/**
* canvas宽度-x
*/
width: number;
/**
* canvas高度-y
*/
height: number;
/**
* width
*/
destWidth: number;
/**
* height
*/
destHeight: number;
/**
* [`<canvas/>`](../../component/canvas.md) canvas-id
*/
canvasId: string;
/**
* 'jpg' 'png' 'png'
*/
fileType: string;
/**
* (0, 1]1.0
*/
quality: number;
/**
*
*/
success: () => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _canvasPutImageDataObject {
/**
* [`<canvas />`](../../component/canvas.md) canvas-id
*/
canvasId: string;
/**
* rgba
*/
data: any;
/**
* x
*/
x: number;
/**
* y
*/
y: number;
/**
*
*/
width: number;
/**
*
*/
height: number;
/**
*
*/
success: () => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _canvasGetImageDataObject {
/**
* [`<canvas />`](../../component/canvas.md) canvas-id
*/
canvasId: string;
/**
* x
*/
x: number;
/**
* y
*/
y: number;
/**
*
*/
width: number;
/**
*
*/
height: number;
/**
*
*/
success: (result: _canvasGetImageDataSuccessObject) => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _canvasGetImageDataSuccessObject {
/**
*
*/
errMsg: string;
/**
*
*/
width: number;
/**
*
*/
height: number;
/**
* rgba
*/
data: any;
}
interface _authorizeObject {
/**
* scope [scope ](./authorize-index.md#scope-)
*/
scope: string;
/**
*
*/
success: (result: _authorizeSuccessObject) => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _authorizeSuccessObject {
/**
*
*/
errMsg: string;
}
interface _addPhoneContactObject {
/**
*
*/
photoFilePath: string;
/**
*
*/
nickName: string;
/**
*
*/
lastName: string;
/**
*
*/
middleName: string;
/**
*
*/
firstName: string;
/**
*
*/
remark: string;
/**
*
*/
mobilePhoneNumber: string;
/**
*
*/
weChatNumber: string;
/**
*
*/
addressCountry: string;
/**
*
*/
addressState: string;
/**
*
*/
addressCity: string;
/**
*
*/
addressStreet: string;
/**
*
*/
addressPostalCode: string;
/**
*
*/
organization: string;
/**
*
*/
title: string;
/**
*
*/
workFaxNumber: string;
/**
*
*/
workPhoneNumber: string;
/**
*
*/
hostNumber: string;
/**
*
*/
email: string;
/**
*
*/
url: string;
/**
*
*/
workAddressCountry: string;
/**
*
*/
workAddressState: string;
/**
*
*/
workAddressCity: string;
/**
*
*/
workAddressStreet: string;
/**
*
*/
workAddressPostalCode: string;
/**
*
*/
homeFaxNumber: string;
/**
*
*/
homePhoneNumber: string;
/**
*
*/
homeAddressCountry: string;
/**
*
*/
homeAddressState: string;
/**
*
*/
homeAddressCity: string;
/**
*
*/
homeAddressStreet: string;
/**
*
*/
homeAddressPostalCode: string;
/**
*
*/
success: () => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _addCardObject {
/**
* [](#)
*/
cardList: any;
/**
*
*/
success: (result: _addCardSuccessObject) => void;
/**
*
*/
fail: () => void;
/**
*
*/
complete: () => void;
}
interface _addCardSuccessObject {
/**
* [](#)
*/
cardList: any;
}
interface _ShareAppMessageReturnObject {
/**
*
*/
title: string;
/**
* path /
*/
path: string;
}
interface _AppShowOptions {
/**
*
*/
path: string;
/**
* query
*/
query: object;
/**
*
*/
scene: number;
/**
* shareTicket
*/
shareTicket: string;
}
declare interface _AppOptions {
/**
* onLaunch
*/
onLaunch?: (options: _AppShowOptions) => void;
/**
* onShow
*/
onShow?: (options: _AppShowOptions) => void;
/**
* onHide
*/
onHide?: () => void;
/**
* api onError
*/
onError?: (msg: string) => void;
}
interface _BatteryInfo{
/**
* 1 - 100
*/
level:number;
/**
*
*/
isCharging:number;
}
interface _FileSystemManager{
/**
* /
*/
access:(object:any)=>void;
/**
* FileSystemManager.access /
*/
accessSync:(path:string)=>any;
/**
*
*/
appendFile:(object:any)=>void;
/**
* FileSystemManager.appendFile
* @param
* @param
* @param utf8binary
*/
appendFileSync:(filePath:string,data:any,encoding?:string)=>any;
/**
*
*/
copyFile:(object:any)=>void;
/**
* FileSystemManager.copyFile
* @param
* @param
*/
copyFileSync:(srcPath:string,destPath:string)=>boolean;
/**
*
*/
getFileInfo:(object:any) => void;
/**
*
*/
mkdir:(object:any)=>void;
/**
* FileSystemManager.mkdir
* @param
* @param dirPath a/b/c/d recursive true a a b a/b/c d
*/
mkdirSync:(dirPath:string,recursive:string)=>any;
/**
*
*/
readFile:(object:any)=>void;
/**
* FileSystemManager.readFile
* @param
* @param binary
*/
readFileSync:(filePath:string,encoding?:string)=>any;
/**
* oldPath newPath
*/
rename:(object:any)=>void;
/**
* FileSystemManager.rename
*/
renameSync:(oldPath:string,newPath:string)=>any;
/**
*
*/
rmdir:(object:any)=>void;
/**
* FileSystemManager.rmdir
* @param
* @param true
*/
rmdirSync:(dirPath:string,recursive?:boolean)=>void;
/**
*
*/
readdir:(object:any)=>void;
/**
* FileSystemManager.readdir
*/
readdirSync:(dirPath:string)=>Array<any>;
/**
*
*/
unlink:(object:any)=>void;
/**
* FileSystemManager.unlink
*/
unlinkSync:(filePath:string)=>any;
/**
*
*/
unzip:(object:any)=>void;
/**
*
*/
writeFile:(object:any)=>void;
/**
* FileSystemManager.writeFile
* @param
* @param
* @param utf8 or binary utf8
* @param false
*/
writeFileSync:(filePath:string, data:any, encoding?:string, append?:boolean)=>boolean;
/**
* tempFilePath
*/
saveFile:(object:any)=>void;
/**
* FileSystemManager.saveFile
* @param
* @param
* @returns
*/
saveFileSync:(tempFilePath:string, filePath?:string)=>string;
/**
* OPPO小游戏下已保存的本地缓存文件
*/
removeSavedFile:(object:any )=>void;
/**
* Stats
*/
stat:(object:any)=>void;
}
interface _LoadSubpackageTask{
/**
*
*/
onProgressUpdate:(callback:Function)=>void;
}
interface _NativeAd{
/**
* 广 onLoad onError
*/
load:()=>void;
/**
* 广
*/
destroy:()=>void;
/**
* 广广adId load 广 adId
*/
reportAdShow:(callback:Function) => void;
/**
* 广广adId load 广 adId
*/
reportAdClick:(callback:Function) => void;
/**
* 广
*/
onLoad:(callback:Function)=>void;
/**
* 广
*/
offLoad:(callback:Function)=>void;
/**
*
*/
onError:(callback:Function)=>void;
/**
*
*/
offError:(callback:Function)=>void;
}
interface _InsertAd{
/**
* 广 onLoad onError
*/
load:()=>void;
/**
* 广 onShow onError
*/
show:()=>void;
/**
*
*/
destroy:()=>void;
/**
* 广
*/
onLoad:(callback:Function)=>void;
/**
* 广
*/
offLoad:(callback:Function)=>void;
/**
* 广
*/
onShow:(callback:Function)=>void;
/**
* banner
*/
offShow:(callback:Function)=>void;
/**
* 广
*/
onError:(callback:Function)=>void;
/**
* 广
*/
offError:(callback:Function)=>void;
}
interface _VideoAd{
/**
* 广 onLoad onError
*/
load:()=>void;
/**
* 广 show 广 onVideoStart onError.
* 广广
*/
show:()=>void;
/**
*
*/
destroy:()=>void;
/**
* 广
*/
onLoad:(callback:Function)=>void;
/**
* 广
*/
offLoad:(callback:Function)=>void;
/**
* 广
*/
onVideoStart:(callback:Function)=>void;
/**
* 广
*/
offVideoStart:(callback:Function)=>void;
/**
*
*/
onRewarded:(callback:Function)=>void;
/**
*
*/
offRewarded:(callback:Function)=>void;
/**
* 广
*/
onError:(callback:Function)=>void;
/**
* 广
*/
offError:(callback:Function)=>void;
}
interface _BannerAd{
/**
* load banner onShow onError
*/
show:()=>void;
/**
* banner onHide, onError
*/
hide:()=>void;
/**
* banner
*/
onShow:(callback:Function)=>void;
/**
* banner
*/
offShow:(callback:Function)=>void;
/**
* banner
*/
onHide:(callback:Function)=>void;
/**
* banner
*/
offHide:(callback:Function)=>void;
/**
*
*/
onError:(callback:Function)=>void;
/**
*
*/
offError:(callback:Function)=>void;
}
interface _Battle {
/**
* success回调
*/
init :(object:any) => void;
/**
* **postGameStatus设置游戏状态时
*/
postGameStatus :(object:any) =>void;
/**
* postGameStatus且status为1时
*/
onGameStart:(callback:Function)=>void;
/**
* 退**CP自己实现了退出按钮的通用处理逻辑success回调不代表真正退出退退
*/
quit:(object:any)=>void;
/**
*
*/
postMessage:(object:any) =>void;
/**
*
*/
onMessage:(callback:Function)=>void;
/**
*
*/
writeBlackboard:(object:any)=>void;
}
interface _DownloadTask {
/**
*
*/
abort:()=>void;
/**
*
*/
onProgressUpdate:(callback:Function)=>void;
}
declare function App(options: _AppOptions): void;
/**
*
*/
declare function getApp(): object;
declare interface PageOptions {
/**
*
*/
data?: any;
/**
* --
*/
onLoad?: (options?: object) => void;
/**
* --
*/
onReady?: () => void;
/**
* --
*/
onShow?: () => void;
/**
* --
*/
onHide?: () => void;
/**
* --
*/
onUnload?: () => void;
/**
* --
*/
onPullDownRefresh?: () => void;
/**
*
*/
onReachBottom?: () => void;
/**
*
*/
onShareAppMessage?: () => _ShareAppMessageReturnObject;
}
declare function Page(page: PageOptions): void;
declare function getCurrentPages(): object[];
declare namespace qg {
/**
*
*/
export function addCard(object: _addCardObject): void;
/**
*
*/
export function addPhoneContact(object: _addPhoneContactObject): void;
/**
* ArrayBuffer Base64
*/
export function arrayBufferToBase64(): void;
/**
* 使
*/
export function authorize(object: _authorizeObject): void;
/**
* Base64 ArrayBuffer
*/
export function base64ToArrayBuffer(base64: string): void;
/**
* API
*/
export function canIUse(string: string): void;
/**
* canvas
*/
export function canvasGetImageData(object: _canvasGetImageDataObject): void;
/**
*
*/
export function canvasPutImageData(object: _canvasPutImageDataObject): void;
/**
*
*/
export function canvasToTempFilePath(
this: string,
object: _canvasToTempFilePathObject
): void;
/**
*
*/
export function checkIsSoterEnrolledInDevice(
object: _checkIsSoterEnrolledInDeviceObject
): void;
/**
* SOTER
*/
export function checkIsSupportSoterAuthentication(
object: _checkIsSupportSoterAuthenticationObject
): void;
/**
* 使使wx.checkSession接口****wx.login获取新的用户登录态
*/
export function checkSession(object: _checkSessionObject): void;
/**
*
*/
export function chooseAddress(object: _chooseAddressObject): void;
/**
*
*/
export function chooseContact(object: _chooseContactObject): void;
/**
* 使
*/
export function chooseImage(object: _chooseImageObject): void;
/**
*
*/
export function chooseInvoiceTitle(object: _chooseInvoiceTitleObject): void;
/**
*
*/
export function chooseLocation(object: _chooseLocationObject): void;
/**
*
*/
export function chooseVideo(object: _chooseVideoObject): void;
/**
*
*/
export function clearStorage(): void;
/**
*
*/
export function clearStorageSync(): void;
/**
*
*/
export function closeBLEConnection(object: _closeBLEConnectionObject): void;
/**
* 使使`wx.openBluetoothAdapter`
*/
export function closeBluetoothAdapter(
object: _closeBluetoothAdapterObject
): void;
/**
* WebSocket
*/
export function closeSocket(object: _closeSocketObject): void;
/**
* [WebSocket](https://developer.mozilla.org/zh-CN/docs/Web/API/WebSocket) 连接。**使用前请先阅读[说明](./api-network.md)**。
*/
export function connectSocket(object: _connectSocketObject): void;
/**
* Wi-Fi Wi-Fi Android iOS 11
*/
export function connectWifi(object: _connectWifiObject): void;
/**
* [animation](#animation)`export``animation`
*/
export function createAnimation(object: _createAnimationObject): void;
/**
* audio `audioContext` this `<audio/>`
*/
export function createAudioContext(this: string, audioid: string): void;
/**
*
*/
export function createBLEConnection(object: _createBLEConnectionObject): void;
/**
* camera `cameraContext` `cameraContext` `camera` camera `<camera/>`
*/
export function createCameraContext(this: string): void;
/**
* canvas canvasIdthis `<canvas/>`
*/
export function createCanvasContext(
this: string,
canvasid: string
): CanvasContext;
/**
*
*/
export function createContext(): CanvasContext;
/**
* audio `innerAudioContext`
*/
export function createInnerAudioContext(): void;
/**
* `<live-player/>`
*/
export function createLivePlayerContext(this: string, domid: string): void;
/**
* `live-pusher` `LivePusherContext` `LivePusherContext` `<live-pusher />` `live-pusher` `<live-pusher/>`
*/
export function createLivePusherContext(): void;
/**
* map `mapContext` this `<map/>`
*/
export function createMapContext(this: string, mapid: string): void;
/**
* undefined
*/
export function createSelectorQuery(): void;
/**
* video `videoContext` this `<video/>`
*/
export function createVideoContext(this: string, videoid: string): void;
/**
* HTTP GET
*/
export function downloadFile(object: _downloadFileObject):_DownloadTask;
/**
* characteristic()
*/
export function getBLEDeviceCharacteristics(
object: _getBLEDeviceCharacteristicsObject
): void;
/**
* service
*/
export function getBLEDeviceServices(
object: _getBLEDeviceServicesObject
): void;
/**
* **** `backgroundAudioManager`
*/
export function getBackgroundAudioManager(): _getBackgroundAudioManagerReturnValue;
/**
*
*/
export function getBackgroundAudioPlayerState(
object: _getBackgroundAudioPlayerStateObject
): void;
/**
* `iBeacon`
*/
export function getBeacons(object: _getBeaconsObject): void;
/**
*
*/
export function getBluetoothAdapterState(
object: _getBluetoothAdapterStateObject
): void;
/**
*
*/
export function getBluetoothDevices(object: _getBluetoothDevicesObject): void;
/**
*
*/
export function getClipboardData(object: _getClipboardDataObject): void;
/**
* uuid
*/
export function getConnectedBluetoothDevices(
object: _getConnectedBluetoothDevicesObject
): void;
/**
* Wi-Fi
*/
export function getConnectedWifi(object: _getConnectedWifiObject): void;
/**
*
*/
export function getExtConfig(object: _getExtConfigObject): void;
/**
*
*/
export function getExtConfigSync(): _getExtConfigSyncReturnValue;
/**
*
*/
export function getFileInfo(object: _getFileInfoObject): void;
/**
* HCE
*/
export function getHCEState(object: _getHCEStateObject): void;
/**
*
*/
export function getImageInfo(object: _getImageInfoObject): void;
/**
*
*/
export function getLocation(object: _getLocationObject): void;
/**
*
*/
export function getNetworkType(object: _getNetworkTypeObject): void;
/**
* AES加密数据
*/
export function getOpenDeviceId(object: _getOpenDeviceIdObject): void;
/**
* **** `recorderManager`
*/
export function getRecorderManager(): void;
/**
* 使 [wx.getFileInfo](./getFileInfo.md)
*/
export function getSavedFileInfo(object: _getSavedFileInfoObject): void;
/**
*
*/
export function getSavedFileList(object: _getSavedFileListObject): void;
/**
*
*/
export function getScreenBrightness(object: _getScreenBrightnessObject): void;
/**
*
*/
export function getSetting(object: _getSettingObject): void;
/**
*
*/
export function getShareInfo(object: _getShareInfoObject): void;
/**
* key
*/
export function getStorage(object: _getStorageObject): void;
/**
* storage的相关信息
*/
export function getStorageInfo(object: _getStorageInfoObject): void;
/**
* storage的相关信息
*/
export function getStorageInfoSync(): void;
/**
* key
*/
export function getStorageSync(key: string): void;
/**
*
*/
export function getSystemInfo(object: _getSystemInfoObject): void;
/**
*
*/
export function getSystemInfoSync(): _getSystemInfoSyncReturnValue;
/**
* withCredentials true [wx.login](./api-login.md#wxloginobject)
*/
export function getUserInfo(object: _getUserInfoObject): void;
/**
* [wx.login](./api-login.md#wxloginobject)
*/
export function getWeRunData(object: _getWeRunDataObject): void;
/**
* Wi-Fi `onGetWifiList` wifiList iOS Wi-Fi Android
*/
export function getWifiList(object: _getWifiListObject): void;
/**
* loading
*/
export function hideLoading(): void;
/**
*
*/
export function hideNavigationBarLoading(): void;
/**
*
*/
export function hideShareMenu(object: _hideShareMenuObject): void;
/**
* tabBar
*/
export function hideTabBar(object: _hideTabBarObject): void;
/**
* tabBar
*/
export function hideTabBarRedDot(object: _hideTabBarRedDotObject): void;
/**
*
*/
export function hideToast(): void;
/**
* **token****uid**
*/
export function login(object: _loginObject): void;
/**
* wx.makePhoneCall({
*/
export function makePhoneCall(object: _makePhoneCallObject): void;
/**
* VoIP
*/
export function makeVoIPCall(object: _makeVoIPCallObject): void;
/**
* [`getCurrentPages()`](../framework/app-service/page.md#getCurrentPages())
*/
export function navigateBack(object: _navigateBackObject): void;
/**
*
*/
export function navigateBackMiniProgram(
object: _navigateBackMiniProgramObject
): void;
/**
* 使`wx.navigateBack`
*/
export function navigateTo(object: _navigateToObject): void;
/**
* ** open **
*/
export function navigateToMiniProgram(
object: _navigateToMiniProgramObject
): void;
/**
* notify `notify``indicate` characteristic properties
*/
export function notifyBLECharacteristicValueChange(
object: _notifyBLECharacteristicValueChangeObject
): void;
/**
* 5/使 `wx.stopAccelerometer`
*/
export function onAccelerometerChange(
callback: (x,y,z) => void
): void;
/**
* `notify`notification
*/
export function onBLECharacteristicValueChange(
callback: (result: _onBLECharacteristicValueChangeCallbackResult) => void
): void;
/**
*
*/
export function onBLEConnectionStateChange(
callback: (result: _onBLEConnectionStateChangeCallbackResult) => void
): void;
/**
*
*/
export function onBackgroundAudioPause(callback: string): void;
/**
*
*/
export function onBackgroundAudioPlay(callback: string): void;
/**
*
*/
export function onBackgroundAudioStop(callback: string): void;
/**
* `iBeacon`
*/
export function onBeaconServiceChange(
callback: (result: _onBeaconServiceChangeCallbackResult) => void
): void;
/**
* `iBeacon`
*/
export function onBeaconUpdate(
callback: (result: _onBeaconUpdateCallbackResult) => void
): void;
/**
*
*/
export function onBluetoothAdapterStateChange(
callback: (result: _onBluetoothAdapterStateChangeCallbackResult) => void
): void;
/**
*
*/
export function onBluetoothDeviceFound(
callback: (result: _onBluetoothDeviceFoundCallbackResult) => void
): void;
/**
* 5/使`wx.stopCompass`
*/
export function onCompassChange(
callback: (result: _onCompassChangeCallbackResult) => void
): void;
/**
* Wi-Fi `confidence`
*/
export function onEvaluateWifi(
callback: (result: _onEvaluateWifiCallbackResult) => void
): void;
/**
* Wi-Fi wifiList
*/
export function onGetWifiList(
callback: (result: _onGetWifiListCallbackResult) => void
): void;
/**
* NFC `messageType`
*/
export function onHCEMessage(
callback: (result: _onHCEMessageCallbackResult) => void
): void;
/**
*
*/
export function onNetworkStatusChange(
callback: (result: _onNetworkStatusChangeCallbackResult) => void
): void;
/**
* WebSocket关闭
*/
export function onSocketClose(callback: string): void;
/**
* WebSocket错误
*/
export function onSocketError(callback: string): void;
/**
* WebSocket接受到服务器的消息事件
*/
export function onSocketMessage(
callback: (result: _onSocketMessageCallbackResult) => void
): void;
/**
* WebSocket连接打开事件
*/
export function onSocketOpen(callback: string): void;
/**
* 使
*/
export function onUserCaptureScreen(
callback: (result: _onUserCaptureScreenCallbackResult) => void
): void;
/**
* Wi-Fi
*/
export function onWifiConnected(
callback: (result: _onWifiConnectedCallbackResult) => void
): void;
/**
* `wx.openBluetoothAdapter``wx.closeBluetoothAdapter`
*/
export function openBluetoothAdapter(
object: _openBluetoothAdapterObject
): void;
/**
*
*/
export function openCard(object: _openCardObject): void;
/**
* doc, xls, ppt, pdf, docx, xlsx, pptx
*/
export function openDocument(object: _openDocumentObject): void;
/**
* 使
*/
export function openLocation(object: _openLocationObject): void;
/**
*
*/
export function openSetting(object: _openSettingObject): void;
/**
*
*/
export function pageScrollTo(object: _pageScrollToObject): void;
/**
*
*/
export function pauseBackgroundAudio(): void;
/**
* wx.playVoice播放同一个文件时 wx.stopVoice
*/
export function pauseVoice(): void;
/**
* 使
*/
export function playBackgroundAudio(object: _playBackgroundAudioObject): void;
/**
*
*/
export function playVoice(object: _playVoiceObject): void;
/**
*
*/
export function previewImage(object: _previewImageObject): void;
/**
*
*/
export function reLaunch(object: _reLaunchObject): void;
/**
* `read` characteristic properties
*/
export function readBLECharacteristicValue(
object: _readBLECharacteristicValueObject
): void;
/**
*
*/
export function redirectTo(object: _redirectToObject): void;
/**
*
*/
export function removeSavedFile(object: _removeSavedFileObject): void;
/**
* key
*/
export function removeStorage(object: _removeStorageObject): void;
/**
* key
*/
export function removeStorageSync(key: string): void;
/**
* tabBar
*/
export function removeTabBarBadge(object: _removeTabBarBadgeObject): void;
/**
* 使
*/
export function reportAnalytics(eventname: string, data: string): void;
/**
* **使[](./api-network.md)**
*/
export function request(object: _requestObject): void;
/**
* **saveFile tempFilePath **
*/
export function saveFile(object: _saveFileObject): void;
/**
* [](./authorize-index.md) scope.writePhotosAlbum
*/
export function saveImageToPhotosAlbum(
object: _saveImageToPhotosAlbumObject
): void;
/**
* [](./authorize-index.md) scope.writePhotosAlbum
*/
export function saveVideoToPhotosAlbum(
object: _saveVideoToPhotosAlbumObject
): void;
/**
*
*/
export function scanCode(object: _scanCodeObject): void;
/**
*
*/
export function seekBackgroundAudio(object: _seekBackgroundAudioObject): void;
/**
* NFC
*/
export function sendHCEMessage(object: _sendHCEMessageObject): void;
/**
* WebSocket [wx.connectSocket](#wxconnectsocketobject) [wx.onSocketOpen](#wxonsocketopencallback)
*/
export function sendSocketMessage(object: _sendSocketMessageObject): void;
/**
*
*/
export function setClipboardData(object: _setClipboardDataObject): void;
/**
*
*/
export function setEnableDebug(object: _setEnableDebugObject): void;
/**
*
*/
export function setKeepScreenOn(object: _setKeepScreenOnObject): void;
/**
* wx.setNavigationBarColor({
*/
export function setNavigationBarColor(
object: _setNavigationBarColorObject
): void;
/**
*
*/
export function setNavigationBarTitle(
object: _setNavigationBarTitleObject
): void;
/**
*
*/
export function setScreenBrightness(object: _setScreenBrightnessObject): void;
/**
* key key
*/
export function setStorage(object: _setStorageObject): void;
/**
* data key key
*/
export function setStorageSync(key: string): void;
/**
* tabBar
*/
export function setTabBarBadge(object: _setTabBarBadgeObject): void;
/**
* tabBar
*/
export function setTabBarItem(object: _setTabBarItemObject): void;
/**
* tabBar
*/
export function setTabBarStyle(object: _setTabBarStyleObject): void;
/**
* ** 5s 5s failerrMsg"setTopBarText: fail invoke too frequently"**
*/
export function setTopBarText(object: _setTopBarTextObject): void;
/**
* `onGetWifiList` wifiList AP
*/
export function setWifiList(object: _setWifiListObject): void;
/**
*
*/
export function showActionSheet(object: _showActionSheetObject): void;
/**
* loading , [wx.hideLoading](#wxhideloading)
*/
export function showLoading(object: _showLoadingObject): void;
/**
*
*/
export function showModal(object: _showModalObject): void;
/**
*
*/
export function showNavigationBarLoading(): void;
/**
*
*/
export function showShareMenu(object: _showShareMenuObject): void;
/**
* tabBar
*/
export function showTabBar(object: _showTabBarObject): void;
/**
* tabBar
*/
export function showTabBarRedDot(object: _showTabBarRedDotObject): void;
/**
*
*/
export function showToast(object: _showToastObject): void;
/**
*
*/
export function startAccelerometer(object: _startAccelerometerObject): void;
/**
* `iBeacon`
*/
export function startBeaconDiscovery(
object: _startBeaconDiscoveryObject
): void;
/**
* stop
*/
export function startBluetoothDevicesDiscovery(
object: _startBluetoothDevicesDiscoveryObject
): void;
/**
*
*/
export function startCompass(object: _startCompassObject): void;
/**
* NFC
*/
export function startHCE(object: _startHCEObject): void;
/**
*
*/
export function startPullDownRefresh(
object: _startPullDownRefreshObject
): void;
/**
* `wx.stopRecord`1
*/
export function startRecord(object: _startRecordObject): void;
/**
* SOTER
*/
export function startSoterAuthentication(
object: _startSoterAuthenticationObject
): void;
/**
* Wi-Fi
*/
export function startWifi(object: _startWifiObject): void;
/**
*
*/
export function stopAccelerometer(object: _stopAccelerometerObject): void;
/**
*
*/
export function stopBackgroundAudio(): void;
/**
* `iBeacon`
*/
export function stopBeaconDiscovery(object: _stopBeaconDiscoveryObject): void;
/**
*
*/
export function stopBluetoothDevicesDiscovery(
object: _stopBluetoothDevicesDiscoveryObject
): void;
/**
*
*/
export function stopCompass(object: _stopCompassObject): void;
/**
* NFC
*/
export function stopHCE(object: _stopHCEObject): void;
/**
*
*/
export function stopPullDownRefresh(): void;
/**
*
*/
export function stopRecord(): void;
/**
*
*/
export function stopVoice(): void;
/**
* Wi-Fi
*/
export function stopWifi(object: _stopWifiObject): void;
/**
* tabBar tabBar
*/
export function switchTab(object: _switchTabObject): void;
/**
*
*/
export function updateShareMenu(object: _updateShareMenuObject): void;
/**
* HTTPS POST `content-type` `multipart/form-data` **使[](./api-network.md)**
*/
export function uploadFile(object: _uploadFileObject): void;
/**
* 使400ms
*/
export function vibrateLong(object: _vibrateLongObject): void;
/**
* 使15ms
*/
export function vibrateShort(object: _vibrateShortObject): void;
/***
*
*/
export function onMessage(callback:Function):void;
/**
* 使
*/
export function getFriendCloudStorage(object):void;
/**
* KV
* @param object
*/
export function setUserCloudStorage(object):void;
/**
* `write` characteristic properties
*/
export function writeBLECharacteristicValue(
object: _writeBLECharacteristicValueObject
): void;
/**
*
*/
export function getBattle():_Battle;
/**
* 3setLoadingProgresssetLoadingProgress({progress: 0})
*/
export function setLoadingProgress(object:any):void;
/**
* '1031' (minPlatformVersion>='1031')
*
*/
export function loadingComplete(object:any):void;
/**
*
*/
export function requestPayment(object: _requestPaymentObject): void;
/**
*
*/
export function pay(object: _requestPaymentObject): void;
/**
* 广广 Log广 AppId
*/
export function initAdService(object:any):void;
/**
* Banner 广 Banner 广使广
*/
export function createBannerAd(object:any):_BannerAd;
/**
* **广**
* 广 posId destroy
*/
export function createRewardedVideoAd(object:any):_VideoAd;
/**
* **广**
* 广 posId destroy
*/
export function createInsertAd(object:any):_InsertAd;
/**
* **广**
* 广 cp 广广 广 posId destroy
*/
export function createNativeAd(object:any):_NativeAd;
/**
*
*/
export function loadSubpackage(object:any):_LoadSubpackageTask;
/**
* cp 使() qg.getFileSystemManager() FileSystemManager , FileSystemManager ()
*/
export function getFileSystemManager():_FileSystemManager;
/**
*
*/
export function getBatteryInfo(object:any):void;
/**
* getBatteryInfo()
*/
export function getBatteryInfoSync(object:any):_BatteryInfo;
/**
* onAudioInterruptionBegin OPPO小游戏内所有音频会暂停
*/
export function onAudioInterruptionEnd(callback:Function):void;
/**
* onAudioInterruptionBegin OPPO小游戏内所有音频会暂停
*/
export function offAudioInterruptionEnd(callback:Function):void;
/**
* FaceTime OPPO小游戏内所有音频会暂停
*/
export function onAudioInterruptionBegin(callback:Function):void;
/**
* FaceTime OPPO小游戏内所有音频会暂停
*/
export function offAudioInterruptionBegin(callback:Function):void;
/**
*
*/
export function onError(callback:Function):void;
/**
*
*/
export function offError(callback:Function):void;
/**
* 退 OPPO
*/
export function exitApplication(object:any):void;
/**
* OPPO
*/
export function getLaunchOptionsSync():any;
/**
* OPPO HOME 退
*/
export function onHide(callback:Function):any;
/**
* OPPO HOME 退
*/
export function offHide(callback:Function):any;
/**
* OPPO
*/
export function onShow(callback:Function):any;
/**
* OPPO
*/
export function offShow(callback:Function):any;
/**
*
*/
export function getPerformance():any;
/**
* JavaScript VM GC JavaScript VM GC
*/
export function triggerGC():void;
/**
*
*/
export function getTextLineHeight(object:any):void;
}