@hyext/types-ext-sdk-hy 3.17.0-beta.1 → 3.17.0-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +164 -42
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -474,7 +474,7 @@ type DestroyAdReq = {
|
|
|
474
474
|
|
|
475
475
|
/**
|
|
476
476
|
* 关闭信息
|
|
477
|
-
* @property isEnded -
|
|
477
|
+
* @property isEnded - 是否看完, 1-看完, 0-未看完
|
|
478
478
|
*/
|
|
479
479
|
type CloseInfo = {
|
|
480
480
|
isEnded: boolean;
|
|
@@ -2608,6 +2608,7 @@ type ContextInfo = {
|
|
|
2608
2608
|
* @property liveCompany - 交友陪玩直播间, 1-为交友陪玩直播间, 0-为非交友陪玩直播间
|
|
2609
2609
|
* @property liveMode - 开播模式, kGame-【PC主播端】端游直播, kEntertainment-【PC主播端】娱乐直播, kMobile-【PC主播端】手游直播, kMakeFriends-【PC主播端】交友直播, kThirdParty-【PC主播端】第三方推流, kScreenCAP-【助手APP】录屏直播, kCamera-【助手APP】摄像头直播, kVoice-【助手APP】语音直播,
|
|
2610
2610
|
* @property liveSubMode - 开播子模式, process-【PC主播端】端游直播-捕捉游戏画面, desktop-【PC主播端】端游直播-全屏捕捉, area-【PC主播端】端游直播-截取屏幕, window-【PC主播端】端游直播-窗口捕捉, adr-【PC主播端】手游直播-安卓手机, ios-【PC主播端】手游直播-苹果手机, audio-【PC主播端】交友直播-语音开播, video-【PC主播端】交友直播-视频开播, multiPlayersVideo-【PC主播端】派对模式,
|
|
2611
|
+
* @property liveId - 直播ID
|
|
2611
2612
|
*/
|
|
2612
2613
|
type RespLiveInfo = {
|
|
2613
2614
|
gameName: string;
|
|
@@ -2623,6 +2624,7 @@ type RespLiveInfo = {
|
|
|
2623
2624
|
liveCompany: number;
|
|
2624
2625
|
liveMode: string;
|
|
2625
2626
|
liveSubMode: string;
|
|
2627
|
+
liveId: string;
|
|
2626
2628
|
};
|
|
2627
2629
|
|
|
2628
2630
|
/**
|
|
@@ -3329,7 +3331,7 @@ namespace device {
|
|
|
3329
3331
|
/**
|
|
3330
3332
|
* 获取窗口信息
|
|
3331
3333
|
*/
|
|
3332
|
-
function getWindowInfo():
|
|
3334
|
+
function getWindowInfo(): WindowInfo;
|
|
3333
3335
|
}
|
|
3334
3336
|
|
|
3335
3337
|
/**
|
|
@@ -4005,6 +4007,12 @@ namespace feedback {
|
|
|
4005
4007
|
* @returns 返回结果
|
|
4006
4008
|
*/
|
|
4007
4009
|
function openFeedbackForm(params: FeedbackParams): Promise<void>;
|
|
4010
|
+
/**
|
|
4011
|
+
* 反馈
|
|
4012
|
+
* @param params - 请求参数
|
|
4013
|
+
* @returns 返回结果
|
|
4014
|
+
*/
|
|
4015
|
+
function sendFeedback(params: SendFeedbackReq): Promise<SendFeedbackRsp>;
|
|
4008
4016
|
}
|
|
4009
4017
|
|
|
4010
4018
|
/**
|
|
@@ -4032,6 +4040,24 @@ type FeedbackParams = {
|
|
|
4032
4040
|
param: string;
|
|
4033
4041
|
};
|
|
4034
4042
|
|
|
4043
|
+
/**
|
|
4044
|
+
* 反馈请求参数
|
|
4045
|
+
* @property fbType - 反馈类型
|
|
4046
|
+
* @property fbContent - 反馈详情
|
|
4047
|
+
*/
|
|
4048
|
+
type SendFeedbackReq = {
|
|
4049
|
+
fbType: string;
|
|
4050
|
+
fbContent: string;
|
|
4051
|
+
};
|
|
4052
|
+
|
|
4053
|
+
/**
|
|
4054
|
+
* 反馈结果
|
|
4055
|
+
* @property feedbackId - 反馈日志id
|
|
4056
|
+
*/
|
|
4057
|
+
type SendFeedbackRsp = {
|
|
4058
|
+
feedbackId: string;
|
|
4059
|
+
};
|
|
4060
|
+
|
|
4035
4061
|
/**
|
|
4036
4062
|
* 文件系统
|
|
4037
4063
|
*/
|
|
@@ -4123,7 +4149,7 @@ namespace fs {
|
|
|
4123
4149
|
* @param params - 传入参数
|
|
4124
4150
|
* @returns 调用结果
|
|
4125
4151
|
*/
|
|
4126
|
-
function downloadFile(params: DownloadFileReq): Promise<
|
|
4152
|
+
function downloadFile(params: DownloadFileReq): Promise<DownloadFileRsp>;
|
|
4127
4153
|
/**
|
|
4128
4154
|
* 判断文件/目录是否存在
|
|
4129
4155
|
* @param params - 传入参数
|
|
@@ -4350,13 +4376,13 @@ namespace fs {
|
|
|
4350
4376
|
* @param params - 传入参数
|
|
4351
4377
|
* @returns 调用结果
|
|
4352
4378
|
*/
|
|
4353
|
-
function write(params: WriteReq): Promise<
|
|
4379
|
+
function write(params: WriteReq): Promise<WriteRsp>;
|
|
4354
4380
|
/**
|
|
4355
4381
|
* 同步写入文件
|
|
4356
4382
|
* @param params - 传入参数
|
|
4357
4383
|
* @returns 调用结果
|
|
4358
4384
|
*/
|
|
4359
|
-
function writeSync(params: WriteReq):
|
|
4385
|
+
function writeSync(params: WriteReq): WriteRsp;
|
|
4360
4386
|
/**
|
|
4361
4387
|
* 写文件
|
|
4362
4388
|
* @param params - 传入参数
|
|
@@ -4521,6 +4547,23 @@ type CleanResParams = {
|
|
|
4521
4547
|
reserveMD5List: string[];
|
|
4522
4548
|
};
|
|
4523
4549
|
|
|
4550
|
+
/**
|
|
4551
|
+
* 保存进度信息
|
|
4552
|
+
* @property url - 文件url
|
|
4553
|
+
* @property bytesTotal - 文件总大小,单位是字
|
|
4554
|
+
* @property bytesLoaded - 已加载的大小,单位是字节
|
|
4555
|
+
*/
|
|
4556
|
+
type FileProgressInfo = {
|
|
4557
|
+
url: string;
|
|
4558
|
+
bytesTotal: number;
|
|
4559
|
+
bytesLoaded: number;
|
|
4560
|
+
};
|
|
4561
|
+
|
|
4562
|
+
/**
|
|
4563
|
+
* @param info - 保存进度信息
|
|
4564
|
+
*/
|
|
4565
|
+
type SaveFileProgressCallback = (info: FileProgressInfo) => void;
|
|
4566
|
+
|
|
4524
4567
|
/**
|
|
4525
4568
|
* 本地文件信息
|
|
4526
4569
|
* @property status - 状态码,0是成功,非0失败
|
|
@@ -4562,12 +4605,14 @@ type SaveFileInfo = {
|
|
|
4562
4605
|
* @property fileList - 要保留的资源md5列表,至少传入一个
|
|
4563
4606
|
* @property [authKeys] - 需要授权的场景值
|
|
4564
4607
|
* @property callback - 单个文件保存结果回调
|
|
4608
|
+
* @property [progressCallback] - 单个文件保存进度回调
|
|
4565
4609
|
*/
|
|
4566
4610
|
type SaveFilesReq = {
|
|
4567
4611
|
type: string;
|
|
4568
4612
|
fileList: SaveFileInfo[];
|
|
4569
4613
|
authKeys?: string[];
|
|
4570
4614
|
callback: SaveFileCallback;
|
|
4615
|
+
progressCallback?: SaveFileProgressCallback;
|
|
4571
4616
|
};
|
|
4572
4617
|
|
|
4573
4618
|
/**
|
|
@@ -4700,6 +4745,18 @@ type DownloadFileReq = {
|
|
|
4700
4745
|
filePath?: string;
|
|
4701
4746
|
};
|
|
4702
4747
|
|
|
4748
|
+
/**
|
|
4749
|
+
* 下载文件结果
|
|
4750
|
+
* @property tempFilePath - 临时文件路径 (本地路径)
|
|
4751
|
+
* @property filePath - 用户文件路径 (本地路径),跟传入的 filePath 一致
|
|
4752
|
+
* @property statusCode - 状态码
|
|
4753
|
+
*/
|
|
4754
|
+
type DownloadFileRsp = {
|
|
4755
|
+
tempFilePath: string;
|
|
4756
|
+
filePath: string;
|
|
4757
|
+
statusCode: number;
|
|
4758
|
+
};
|
|
4759
|
+
|
|
4703
4760
|
/**
|
|
4704
4761
|
* 判断文件/目录是否存在参数
|
|
4705
4762
|
* @property path - 要判断是否存在的文件/目录路径 (本地路径)
|
|
@@ -4712,11 +4769,13 @@ type AccessReq = {
|
|
|
4712
4769
|
* 在文件结尾追加内容参数
|
|
4713
4770
|
* @property filePath - 要追加内容的文件路径 (本地路径)
|
|
4714
4771
|
* @property data - 要追加的文本或二进制数据
|
|
4715
|
-
* @property [
|
|
4772
|
+
* @property [dataType] - 追加数据类型, string-string, ArrayBuffer-ArrayBuffer
|
|
4773
|
+
* @property [encoding] - 指定读取文件的字符编码, base64-base64, utf8-utf8, binary-二进制
|
|
4716
4774
|
*/
|
|
4717
4775
|
type AppendFileReq = {
|
|
4718
4776
|
filePath: string;
|
|
4719
|
-
data: string;
|
|
4777
|
+
data: string | ArrayBuffer;
|
|
4778
|
+
dataType?: string;
|
|
4720
4779
|
encoding?: string;
|
|
4721
4780
|
};
|
|
4722
4781
|
|
|
@@ -4751,7 +4810,7 @@ type GetFileInfoRsp = {
|
|
|
4751
4810
|
/**
|
|
4752
4811
|
* 获取文件信息参数
|
|
4753
4812
|
* @property filePath - 要读取的文件路径 (本地路径)
|
|
4754
|
-
* @property [digestAlgorithm] - 计算文件摘要的算法, md5-md5算法, sha1-sha1算法
|
|
4813
|
+
* @property [digestAlgorithm] - 计算文件摘要的算法, md5-md5算法, sha1-sha1算法, sha256-sha256算法
|
|
4755
4814
|
*/
|
|
4756
4815
|
type GetFileInfoReq = {
|
|
4757
4816
|
filePath: string;
|
|
@@ -4809,11 +4868,11 @@ type OpenReq = {
|
|
|
4809
4868
|
/**
|
|
4810
4869
|
* 文件信息
|
|
4811
4870
|
* @property bytesRead - 实际读取的字节数
|
|
4812
|
-
* @property
|
|
4871
|
+
* @property arrayBuffer - 被写入的缓存区的对象
|
|
4813
4872
|
*/
|
|
4814
4873
|
type ReadRsp = {
|
|
4815
4874
|
bytesRead: number;
|
|
4816
|
-
|
|
4875
|
+
arrayBuffer: ArrayBuffer;
|
|
4817
4876
|
};
|
|
4818
4877
|
|
|
4819
4878
|
/**
|
|
@@ -4826,7 +4885,7 @@ type ReadRsp = {
|
|
|
4826
4885
|
*/
|
|
4827
4886
|
type ReadReq = {
|
|
4828
4887
|
fd: string;
|
|
4829
|
-
arrayBuffer:
|
|
4888
|
+
arrayBuffer: ArrayBuffer;
|
|
4830
4889
|
offset?: number;
|
|
4831
4890
|
length?: number;
|
|
4832
4891
|
position?: number;
|
|
@@ -4837,15 +4896,17 @@ type ReadReq = {
|
|
|
4837
4896
|
* @property data - 文件内容
|
|
4838
4897
|
*/
|
|
4839
4898
|
type ReadCompressedFileRsp = {
|
|
4840
|
-
data:
|
|
4899
|
+
data: ArrayBuffer;
|
|
4841
4900
|
};
|
|
4842
4901
|
|
|
4843
4902
|
/**
|
|
4844
4903
|
* 读取指定压缩类型的本地文件内容参数
|
|
4845
4904
|
* @property filePath - 要读取的文件的路径 (本地用户文件或代码包文件)
|
|
4905
|
+
* @property compressionAlgorithm - 文件压缩类型, br-brotli压缩文件
|
|
4846
4906
|
*/
|
|
4847
4907
|
type ReadCompressedFileReq = {
|
|
4848
4908
|
filePath: string;
|
|
4909
|
+
compressionAlgorithm: string;
|
|
4849
4910
|
};
|
|
4850
4911
|
|
|
4851
4912
|
/**
|
|
@@ -4869,13 +4930,13 @@ type ReaddirReq = {
|
|
|
4869
4930
|
* @property data - 文件数据
|
|
4870
4931
|
*/
|
|
4871
4932
|
type ReadFileRsp = {
|
|
4872
|
-
data:
|
|
4933
|
+
data: string | ArrayBuffer;
|
|
4873
4934
|
};
|
|
4874
4935
|
|
|
4875
4936
|
/**
|
|
4876
4937
|
* 读取文件参数
|
|
4877
4938
|
* @property filePath - 要读取的文件的路径 (本地路径)
|
|
4878
|
-
* @property [encoding] - 指定读取文件的字符编码, base64-base64, utf8-utf8
|
|
4939
|
+
* @property [encoding] - 指定读取文件的字符编码, base64-base64, utf8-utf8, binary-二进制
|
|
4879
4940
|
* @property [position] - 从文件指定位置开始读,如果不指定,则从文件头开始读
|
|
4880
4941
|
* @property [length] - 指定文件的长度,如果不指定,则读到文件末尾。
|
|
4881
4942
|
*/
|
|
@@ -4886,24 +4947,48 @@ type ReadFileReq = {
|
|
|
4886
4947
|
length?: number;
|
|
4887
4948
|
};
|
|
4888
4949
|
|
|
4950
|
+
/**
|
|
4951
|
+
* 文件信息
|
|
4952
|
+
* @property data - 文件内容string|ArrayBuffer
|
|
4953
|
+
* @property errMsg - 错误信息
|
|
4954
|
+
*/
|
|
4955
|
+
type FileItem = {
|
|
4956
|
+
data: string | ArrayBuffer;
|
|
4957
|
+
errMsg: string;
|
|
4958
|
+
};
|
|
4959
|
+
|
|
4889
4960
|
/**
|
|
4890
4961
|
* 读取压缩包内的文件
|
|
4891
|
-
* @property entries - 文件读取结果,key是文件路径,value是一个对象
|
|
4962
|
+
* @property entries - 文件读取结果,key是文件路径,value是一个对象FileItem,表示该文件的读取结果。每个FileItem包含data(文件内容)和errMsg(错误信息)属性
|
|
4892
4963
|
*/
|
|
4893
4964
|
type ReadZipEntryRsp = {
|
|
4894
4965
|
entries: any;
|
|
4895
4966
|
};
|
|
4896
4967
|
|
|
4968
|
+
/**
|
|
4969
|
+
* 读取压缩包内的文件参数
|
|
4970
|
+
* @property path - 压缩包内文件路径
|
|
4971
|
+
* @property [encoding] - 指定读取文件的字符编码, base64-base64, utf8-utf8, binary-二进制
|
|
4972
|
+
* @property [position] - 从文件指定位置开始读,如果不指定,则从文件头开始读
|
|
4973
|
+
* @property [length] - 指定文件的长度,如果不指定,则读到文件末尾
|
|
4974
|
+
*/
|
|
4975
|
+
type EntrieInfo = {
|
|
4976
|
+
path: string;
|
|
4977
|
+
encoding?: string;
|
|
4978
|
+
position?: number;
|
|
4979
|
+
length?: number;
|
|
4980
|
+
};
|
|
4981
|
+
|
|
4897
4982
|
/**
|
|
4898
4983
|
* 读取压缩包内的文件参数
|
|
4899
4984
|
* @property filePath - 要读取的文件的路径 (本地路径)
|
|
4900
|
-
* @property [encoding] -
|
|
4985
|
+
* @property [encoding] - 统一指定读取文件的字符编码,只在entries值为"all"时有效,entries值为"all"时不传默认返回二进制内容
|
|
4901
4986
|
* @property entries - 要读取的压缩包内的文件列表(当传入"all" 时表示读取压缩包内所有文件)
|
|
4902
4987
|
*/
|
|
4903
4988
|
type ReadZipEntryReq = {
|
|
4904
4989
|
filePath: string;
|
|
4905
4990
|
encoding?: string;
|
|
4906
|
-
entries:
|
|
4991
|
+
entries: EntrieInfo[] | 'all';
|
|
4907
4992
|
};
|
|
4908
4993
|
|
|
4909
4994
|
/**
|
|
@@ -4962,12 +5047,30 @@ type SaveFileReq = {
|
|
|
4962
5047
|
filePath?: string;
|
|
4963
5048
|
};
|
|
4964
5049
|
|
|
5050
|
+
/**
|
|
5051
|
+
* 文件状态
|
|
5052
|
+
* @property mode - 文件的类型和存取的权限
|
|
5053
|
+
* @property size - 文件大小,单位:B
|
|
5054
|
+
* @property lastAccessedTime - 文件最近一次被存取或被执行的时间戳
|
|
5055
|
+
* @property lastModifiedTime - 文件最后一次被修改的时间戳
|
|
5056
|
+
* @property isDirectory - 判断当前文件是否一个目录
|
|
5057
|
+
* @property isFile - 判断当前文件是否一个普通文件
|
|
5058
|
+
*/
|
|
5059
|
+
type FileStats = {
|
|
5060
|
+
mode: number;
|
|
5061
|
+
size: number;
|
|
5062
|
+
lastAccessedTime: number;
|
|
5063
|
+
lastModifiedTime: number;
|
|
5064
|
+
isDirectory: boolean;
|
|
5065
|
+
isFile: boolean;
|
|
5066
|
+
};
|
|
5067
|
+
|
|
4965
5068
|
/**
|
|
4966
5069
|
* 文件Stats对象结果
|
|
4967
5070
|
* @property stats - 当recursive为false时,res.stats是一个Stats对象。当recursive为true且path是一个目录的路径时,res.stats是一个Array,数组的每一项是一个对象,每个对象包含path和stats
|
|
4968
5071
|
*/
|
|
4969
5072
|
type StatRsp = {
|
|
4970
|
-
stats:
|
|
5073
|
+
stats: FileStats[] | FileStats;
|
|
4971
5074
|
};
|
|
4972
5075
|
|
|
4973
5076
|
/**
|
|
@@ -5002,50 +5105,44 @@ type UnlinkReq = {
|
|
|
5002
5105
|
* 写文件参数
|
|
5003
5106
|
* @property fd - 文件描述符
|
|
5004
5107
|
* @property data - 要写入的文本或二进制数据
|
|
5108
|
+
* @property [dataType] - 追加数据类型, string-string, ArrayBuffer-ArrayBuffer
|
|
5005
5109
|
* @property [offset] - 在 data 是 ArrayBuffer 时要写入的 arrayBuffer 中的索引,默认0
|
|
5006
5110
|
* @property [length] - 在 data 是 ArrayBuffer 时指定要写入的字节数
|
|
5007
|
-
* @property [encoding] - 指定写入文件的字符编码, base64-base64, utf8-utf8
|
|
5111
|
+
* @property [encoding] - 指定写入文件的字符编码, base64-base64, utf8-utf8, binary-二进制
|
|
5008
5112
|
* @property [position] - 指定文件开头的偏移量,即数据要被写入的位置
|
|
5009
5113
|
*/
|
|
5010
5114
|
type WriteReq = {
|
|
5011
5115
|
fd: string;
|
|
5012
|
-
data: string;
|
|
5116
|
+
data: string | ArrayBuffer;
|
|
5117
|
+
dataType?: string;
|
|
5013
5118
|
offset?: number;
|
|
5014
5119
|
length?: number;
|
|
5015
5120
|
encoding?: string;
|
|
5016
5121
|
position?: number;
|
|
5017
5122
|
};
|
|
5018
5123
|
|
|
5124
|
+
/**
|
|
5125
|
+
* 写文件结果
|
|
5126
|
+
* @property bytesWritten - 实际被写入到文件中的字节数
|
|
5127
|
+
*/
|
|
5128
|
+
type WriteRsp = {
|
|
5129
|
+
bytesWritten: number;
|
|
5130
|
+
};
|
|
5131
|
+
|
|
5019
5132
|
/**
|
|
5020
5133
|
* 写文件参数
|
|
5021
5134
|
* @property filePath - 要写入的文件路径 (本地路径)
|
|
5022
5135
|
* @property data - 要写入的文本或二进制数据
|
|
5023
|
-
* @property [
|
|
5136
|
+
* @property [dataType] - 追加数据类型, string-string, ArrayBuffer-ArrayBuffer
|
|
5137
|
+
* @property [encoding] - 指定写入文件的字符编码, base64-base64, utf8-utf8, binary-二进制
|
|
5024
5138
|
*/
|
|
5025
5139
|
type WriteFileReq = {
|
|
5026
5140
|
filePath: string;
|
|
5027
|
-
data: string;
|
|
5141
|
+
data: string | ArrayBuffer;
|
|
5142
|
+
dataType?: string;
|
|
5028
5143
|
encoding?: string;
|
|
5029
5144
|
};
|
|
5030
5145
|
|
|
5031
|
-
/**
|
|
5032
|
-
* 文件状态
|
|
5033
|
-
* @property mode - 文件的类型和存取的权限
|
|
5034
|
-
* @property size - 文件大小,单位:B
|
|
5035
|
-
* @property lastAccessedTime - 文件最近一次被存取或被执行的时间戳
|
|
5036
|
-
* @property lastModifiedTime - 文件最后一次被修改的时间戳
|
|
5037
|
-
* @property isDirectory - 判断当前文件是否一个目录
|
|
5038
|
-
* @property isFile - 判断当前文件是否一个普通文件
|
|
5039
|
-
*/
|
|
5040
|
-
type FileStats = {
|
|
5041
|
-
mode: number;
|
|
5042
|
-
size: number;
|
|
5043
|
-
lastAccessedTime: number;
|
|
5044
|
-
lastModifiedTime: number;
|
|
5045
|
-
isDirectory: boolean;
|
|
5046
|
-
isFile: boolean;
|
|
5047
|
-
};
|
|
5048
|
-
|
|
5049
5146
|
/**
|
|
5050
5147
|
* 获取文件的状态信息参数
|
|
5051
5148
|
* @property stats - 文件状态
|
|
@@ -9550,6 +9647,11 @@ namespace yyb {
|
|
|
9550
9647
|
* @returns 调用结果
|
|
9551
9648
|
*/
|
|
9552
9649
|
function offCloudGameMsgFromYYB(): Promise<void>;
|
|
9650
|
+
/**
|
|
9651
|
+
* 获取云游分配的服务器节点信息
|
|
9652
|
+
* @returns 节点数据
|
|
9653
|
+
*/
|
|
9654
|
+
function getYYBCloudGameServerSource(): Promise<CloudGameServerSourceInfo>;
|
|
9553
9655
|
}
|
|
9554
9656
|
|
|
9555
9657
|
/**
|
|
@@ -9571,8 +9673,13 @@ type LaunchYYBCloudGameReq = {
|
|
|
9571
9673
|
* @property cloudGameSource - 游戏来源
|
|
9572
9674
|
* @property cloudGamePackageName - 游戏包名
|
|
9573
9675
|
* @property entranceId - 游戏ID
|
|
9574
|
-
* @property needShowFloatingWindow -
|
|
9676
|
+
* @property needShowFloatingWindow - 是否需要显示悬浮球, 1-显示, 0-不显示
|
|
9575
9677
|
* @property gameIconUrl - 游戏图标链接
|
|
9678
|
+
* @property [needUseCustomLoadingUI] - 是否使用自定义加载页面, 1-是, 0-否
|
|
9679
|
+
* @property [loadBgUrl] - 加载过程的背景url
|
|
9680
|
+
* @property [loadMsg] - 加载过程的文案
|
|
9681
|
+
* @property [needObserPerformance] - 是否需要监听性能数据, 1-是, 0-否
|
|
9682
|
+
* @property [performanceFrequency] - 性能数据回调频控,单位秒
|
|
9576
9683
|
*/
|
|
9577
9684
|
type StartYYBCloudGameReq = {
|
|
9578
9685
|
bizIdDev: string;
|
|
@@ -9580,8 +9687,13 @@ type StartYYBCloudGameReq = {
|
|
|
9580
9687
|
cloudGameSource: string;
|
|
9581
9688
|
cloudGamePackageName: string;
|
|
9582
9689
|
entranceId: string;
|
|
9583
|
-
needShowFloatingWindow:
|
|
9690
|
+
needShowFloatingWindow: number;
|
|
9584
9691
|
gameIconUrl: string;
|
|
9692
|
+
needUseCustomLoadingUI?: number;
|
|
9693
|
+
loadBgUrl?: string;
|
|
9694
|
+
loadMsg?: string;
|
|
9695
|
+
needObserPerformance?: number;
|
|
9696
|
+
performanceFrequency?: number;
|
|
9585
9697
|
};
|
|
9586
9698
|
|
|
9587
9699
|
/**
|
|
@@ -9607,5 +9719,15 @@ type OnYYBCloudGameMsgReq = {
|
|
|
9607
9719
|
callback: YYBCloudGameMsgCallback;
|
|
9608
9720
|
};
|
|
9609
9721
|
|
|
9722
|
+
/**
|
|
9723
|
+
* 节点数据
|
|
9724
|
+
* @property deviceArea - 节点信息,如guangzhou、shenzhen等
|
|
9725
|
+
* @property deviceId - 节点id
|
|
9726
|
+
*/
|
|
9727
|
+
type CloudGameServerSourceInfo = {
|
|
9728
|
+
deviceArea: string;
|
|
9729
|
+
deviceId: string;
|
|
9730
|
+
};
|
|
9731
|
+
|
|
9610
9732
|
|
|
9611
9733
|
}
|