@hyext/types-ext-sdk-hy 3.11.2-beta.1 → 3.11.2-beta.11

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.
Files changed (2) hide show
  1. package/index.d.ts +108 -4
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -3102,6 +3102,110 @@ type PerformaceDataRsp = {
3102
3102
  data?: PerformaceInfo;
3103
3103
  };
3104
3104
 
3105
+ /**
3106
+ * EXE加工相关
3107
+ */
3108
+ namespace exe {
3109
+ /**
3110
+ * 初始化Game环境
3111
+ * @param params - 参数
3112
+ * @returns 返回操作结果
3113
+ */
3114
+ function initGameEnv(params: ExeInitGameEnvReq): Promise<void>;
3115
+ /**
3116
+ * 启动Game
3117
+ * @param params - 参数
3118
+ * @returns 返回操作结果
3119
+ */
3120
+ function launchGame(params: ExeLaunchGameReq): Promise<void>;
3121
+ /**
3122
+ * 停止Game
3123
+ * @returns 返回操作结果
3124
+ */
3125
+ function shutdownGame(): Promise<void>;
3126
+ /**
3127
+ * 发送消息至Game
3128
+ * @param params - 参数
3129
+ * @returns 返回操作结果
3130
+ */
3131
+ function sendToGame(params: ExeSendToGameReq): Promise<void>;
3132
+ /**
3133
+ * 监听消息信息
3134
+ * @param params - 参数
3135
+ * @returns 返回操作结果
3136
+ */
3137
+ function onGameMessage(params: ExeOnGameMessageReq): Promise<void>;
3138
+ /**
3139
+ * 取消监听消息信息
3140
+ * @returns 返回操作结果
3141
+ */
3142
+ function offGameMessage(): Promise<void>;
3143
+ }
3144
+
3145
+ /**
3146
+ * 初始化Game环境传参
3147
+ * @property optParams - 预留参数(可选)
3148
+ */
3149
+ type ExeInitGameEnvReq = {
3150
+ optParams: string;
3151
+ };
3152
+
3153
+ /**
3154
+ * 启动Game传参
3155
+ * @property [processMode] - local/cloud: 本地加工(默认)/云端加工(可选)
3156
+ * @property md5 - game Exe的压缩包md5(必填)
3157
+ * @property exeName - game exe的本地文件名字(必填)
3158
+ * @property [exeParams] - game exe的启动参数(可选)
3159
+ * @property [optParams] - 预留参数(可选)
3160
+ */
3161
+ type ExeLaunchGameReq = {
3162
+ processMode?: string;
3163
+ md5: string;
3164
+ exeName: string;
3165
+ exeParams?: string;
3166
+ optParams?: string;
3167
+ };
3168
+
3169
+ /**
3170
+ * 发送消息至Game传参
3171
+ * @property message - 消息内容
3172
+ */
3173
+ type ExeSendToGameReq = {
3174
+ message: string;
3175
+ };
3176
+
3177
+ /**
3178
+ * 回调消息
3179
+ * @property name - 消息名称
3180
+ * @property message - 消息内容
3181
+ */
3182
+ type ExeOnGameMessageCallbackParams = {
3183
+ name: string;
3184
+ message: string;
3185
+ };
3186
+
3187
+ /**
3188
+ * 监听相关消息回调
3189
+ * @param params - 回调消息
3190
+ */
3191
+ type ExeOnGameMessageCallback = (params: ExeOnGameMessageCallbackParams) => void;
3192
+
3193
+ /**
3194
+ * 监听消息信息传参
3195
+ * @property callback - 监听相关消息回调
3196
+ */
3197
+ type ExeOnGameMessageReq = {
3198
+ callback: ExeOnGameMessageCallback;
3199
+ };
3200
+
3201
+ /**
3202
+ * 取消监听消息信息传参
3203
+ * @property name - 消息名称
3204
+ */
3205
+ type ExeOffGameMessageReq = {
3206
+ name: string;
3207
+ };
3208
+
3105
3209
  /**
3106
3210
  * 反馈相关
3107
3211
  */
@@ -6879,12 +6983,12 @@ type ShowInputBarRsp = {
6879
6983
 
6880
6984
  /**
6881
6985
  * 展示APP端键盘输入框参数
6882
- * @property text - 默认文字
6883
- * @property placeholder - 默认提示文字
6986
+ * @property [text] - 默认文字
6987
+ * @property [placeholder] - 默认提示文字
6884
6988
  */
6885
6989
  type ShowInputBarReq = {
6886
- text: string;
6887
- placeholder: string;
6990
+ text?: string;
6991
+ placeholder?: string;
6888
6992
  };
6889
6993
 
6890
6994
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyext/types-ext-sdk-hy",
3
- "version": "3.11.2-beta.1",
3
+ "version": "3.11.2-beta.11",
4
4
  "description": "TypeScript definitions for @hyext/ext-sdk-hy",
5
5
  "types": "./index.d.ts",
6
6
  "main": "",