头条小游戏API文档
首页
白天
夜间
下载
阅读记录
书签管理
我的书签
添加书签
移除书签
编辑文档
帧率
来源 1
浏览
624
扫码
打印
2019-03-31 09:15:46
上一篇:
下一篇:
发布点评
渲染
字体 - tt.loadFont
画布
tt.createCanvas
Canvas
Canvas.getContext
RenderingContext
Canvas.toDataURL
Canvas.toTempFilePath
Canvas.toTempFilePathSync
帧率
requestAnimationFrame
cancelAnimationFrame
图片
tt.createImage
Image
设备
屏幕亮度 - tt.setKeepScreenOn
加速度计
tt.startAccelerometer
tt.stopAccelerometer
tt.onAccelerometerChange
剪贴板
tt.setClipboardData
tt.getClipboardData
罗盘
tt.startCompass
tt.stopCompass
tt.onCompassChange
文件
tt.getFileSystemManager
FileSystemManager
FileSystemManager.access
FileSystemManager.accessSync
FileSystemManager.copyFile
FileSystemManager.copyFileSync
FileSystemManager.getFileInfo
FileSystemManager.getSavedFileList
FileSystemManager.mkdir
FileSystemManager.mkdirSync
FileSystemManager.readFile
FileSystemManager.readFileSync
FileSystemManager.readdir
FileSystemManager.readdirSync
FileSystemManager.removeSavedFile
FileSystemManager.rename
FileSystemManager.renameSync
FileSystemManager.rmdir
FileSystemManager.rmdirSync
FileSystemManager.saveFile
FileSystemManager.saveFileSync
FileSystemManager.unlink
FileSystemManager.unlinkSync
FileSystemManager.unzip
FileSystemManager.writeFile
FileSystemManager.writeFileSync
FileSystemManager.stat
FileSystemManager.statSync
Stats
Stats.isDirectory
Stats.isFile
网络
tt.getNetworkType
tt.onNetworkStatusChange
振动
tt.vibrateLong
tt.vibrateShort
位置 - tt.getLocation
网络
下载
tt.downloadFile
DownloadTask
DownloadTask.abort
DownloadTask.onProgressUpdate
发起请求
tt.request
RequestTask
RequestTask.abort
上传
tt.uploadFile
UploadTask
UploadTask.abort
UploadTask.onProgressUpdate
Websocket
tt.connectSocket
SocketTask
SocketTask.send
SocketTask.close
SocketTask.onOpen
SocketTask.onClose
SocketTask.onError
SocketTask.onMessage
介绍
媒体
音频
tt.createInnerAudioContext
InnerAudioContext
InnerAudioContext.pause
InnerAudioContext.play
InnerAudioContext.seek
InnerAudioContext.stop
InnerAudioContext.destroy
InnerAudioContext.onCanplay
InnerAudioContext.onEnded
InnerAudioContext.onError
InnerAudioContext.onPause
InnerAudioContext.onPlay
InnerAudioContext.onSeeked
InnerAudioContext.onSeeking
InnerAudioContext.onStop
InnerAudioContext.onTimeUpdate
InnerAudioContext.onWaiting
InnerAudioContext.offCanplay
InnerAudioContext.offEnded
InnerAudioContext.offError
InnerAudioContext.offPause
InnerAudioContext.offPlay
InnerAudioContext.offSeeked
InnerAudioContext.offSeeking
InnerAudioContext.offStop
InnerAudioContext.offTimeUpdate
InnerAudioContext.offWaiting
录屏
tt.getGameRecorderManager
GameRecorderManager
start
onStart
recordClip
clipVideo
pause
onPause
resume
onResume
stop
onStop
onError
onInterruptionBegin
onInterruptionEnd
图片
tt.previewImage
tt.saveImageToPhotosAlbum
ImageFile
tt.chooseImage
支付
tt.requestGamePayment
获取游戏币余额
游戏币扣除接口
游戏币赠送接口
支付签名生成算法
转发分享
tt.showShareMenu
tt.hideShareMenu
tt.offShareAppMessage
tt.onShareAppMessage
tt.shareAppMessage
tt.shareVideo
数据缓存
clearStorage
clearStorageSync
getStorage
getStorageInfo
getStorageInfoSync
getStorageSync
removeStorage
removeStorageSync
setStorage
setStorageSync
系统
生命周期
tt.exitMiniProgram
tt.getLaunchOptionsSync
tt.onShow
tt.onHide
tt.offShow
tt.offHide
系统信息
tt.getSystemInfo
tt.getSystemInfoSync
触摸事件
Touch
tt.onTouchStart
tt.onTouchMove
tt.onTouchEnd
tt.onTouchCancel
tt.offTouchStart
tt.offTouchMove
tt.offTouchEnd
tt.offTouchCancel
定时器
setTimeout
setInterval
clearTimeout
clearInterval
界面
菜单 - tt.getMenuButtonLayout
交互
showToast
showModal
showLoading
showActionSheet
tt.hideLoading
tt.hideToast
键盘
tt.showKeyboard
tt.updateKeyboard
tt.hideKeyboard
tt.onKeyboardComplete
tt.onKeyboardConfirm
tt.onKeyboardInput
tt.offKeyboardComplete
tt.offKeyboardConfirm
tt.offKeyboardInput
更新
tt.getUpdateManager
UpdateManager
UpdateManager.applyUpdate
UpdateManager.onCheckForUpdate
UpdateManager.onUpdateReady
UpdateManager.onUpdateFailed
Worker
tt.createWorker
Worker
Worker.onMessage
Worker.postMessage
Worker.terminate
暂无相关搜索结果!
本文档使用
全库网
构建
×
思维导图备注
×
文章二维码
手机扫一扫,轻松掌上读
×
文档下载
请下载您需要的格式的文档,随时随地,享受汲取知识的乐趣!
PDF
文档
EPUB
文档
MOBI
文档
×
书签列表
×
阅读记录
阅读进度:
0.00%
(
0/0
)
重置阅读进度