@hyext/types-ext-sdk-hy 4.0.0-beta.8 → 4.0.0-beta.9
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 +19 -19
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -2528,22 +2528,22 @@ type SafeAreaInfo = {
|
|
|
2528
2528
|
* @property screenWidth - 屏幕宽度
|
|
2529
2529
|
* @property screenHeight - 屏幕高度
|
|
2530
2530
|
* @property isLandscape - 屏幕是否是横屏高度
|
|
2531
|
-
* @property pixelRatio - 设备像素比
|
|
2531
|
+
* @property [pixelRatio] - 设备像素比
|
|
2532
2532
|
* @property windowWidth - 可使用窗口宽度,单位 px
|
|
2533
2533
|
* @property windowHeight - 可使用窗口高度,单位 px
|
|
2534
|
-
* @property statusBarHeight - 状态栏的高度,单位 px
|
|
2535
|
-
* @property screenTop - 窗口上边缘的 y 值
|
|
2534
|
+
* @property [statusBarHeight] - 状态栏的高度,单位 px
|
|
2535
|
+
* @property [screenTop] - 窗口上边缘的 y 值
|
|
2536
2536
|
* @property [safeArea] - 在竖屏正方向下的安全区域。部分机型没有安全区域概念,则不返回 safeArea 字段
|
|
2537
2537
|
*/
|
|
2538
2538
|
type Consts = {
|
|
2539
2539
|
screenWidth: number;
|
|
2540
2540
|
screenHeight: number;
|
|
2541
2541
|
isLandscape: boolean;
|
|
2542
|
-
pixelRatio
|
|
2542
|
+
pixelRatio?: number;
|
|
2543
2543
|
windowWidth: number;
|
|
2544
2544
|
windowHeight: number;
|
|
2545
|
-
statusBarHeight
|
|
2546
|
-
screenTop
|
|
2545
|
+
statusBarHeight?: number;
|
|
2546
|
+
screenTop?: number;
|
|
2547
2547
|
safeArea?: SafeAreaInfo;
|
|
2548
2548
|
};
|
|
2549
2549
|
|
|
@@ -3115,7 +3115,7 @@ type StreamerInfo = {
|
|
|
3115
3115
|
streamerNick: string;
|
|
3116
3116
|
streamerAvatarUrl: string;
|
|
3117
3117
|
streamerSex: number;
|
|
3118
|
-
streamerRoomId:
|
|
3118
|
+
streamerRoomId: number;
|
|
3119
3119
|
streamerLevel: number;
|
|
3120
3120
|
streamerUnionId: string;
|
|
3121
3121
|
};
|
|
@@ -3143,9 +3143,9 @@ type ContextInfo = {
|
|
|
3143
3143
|
* @property sourceType - 直播间来源
|
|
3144
3144
|
* @property liveImmersion - 沉浸式直播间, 1-为沉浸式直播间, 0-为非沉浸式直播间
|
|
3145
3145
|
* @property [liveCompany] - 交友陪玩直播间, 1-为交友陪玩直播间, 0-为非交友陪玩直播间
|
|
3146
|
-
* @property liveMode - 开播模式, kGame-【PC主播端】端游直播, kEntertainment-【PC主播端】娱乐直播, kMobile-【PC主播端】手游直播, kMakeFriends-【PC主播端】交友直播, kThirdParty-【PC主播端】第三方推流, kScreenCAP-【助手APP】录屏直播, kCamera-【助手APP】摄像头直播, kVoice-【助手APP】语音直播,
|
|
3147
|
-
* @property liveSubMode - 开播子模式, process-【PC主播端】端游直播-捕捉游戏画面, desktop-【PC主播端】端游直播-全屏捕捉, area-【PC主播端】端游直播-截取屏幕, window-【PC主播端】端游直播-窗口捕捉, adr-【PC主播端】手游直播-安卓手机, ios-【PC主播端】手游直播-苹果手机, audio-【PC主播端】交友直播-语音开播, video-【PC主播端】交友直播-视频开播, multiPlayersVideo-【PC主播端】派对模式,
|
|
3148
|
-
* @property liveId - 直播ID
|
|
3146
|
+
* @property [liveMode] - 开播模式, kGame-【PC主播端】端游直播, kEntertainment-【PC主播端】娱乐直播, kMobile-【PC主播端】手游直播, kMakeFriends-【PC主播端】交友直播, kThirdParty-【PC主播端】第三方推流, kScreenCAP-【助手APP】录屏直播, kCamera-【助手APP】摄像头直播, kVoice-【助手APP】语音直播,
|
|
3147
|
+
* @property [liveSubMode] - 开播子模式, process-【PC主播端】端游直播-捕捉游戏画面, desktop-【PC主播端】端游直播-全屏捕捉, area-【PC主播端】端游直播-截取屏幕, window-【PC主播端】端游直播-窗口捕捉, adr-【PC主播端】手游直播-安卓手机, ios-【PC主播端】手游直播-苹果手机, audio-【PC主播端】交友直播-语音开播, video-【PC主播端】交友直播-视频开播, multiPlayersVideo-【PC主播端】派对模式,
|
|
3148
|
+
* @property [liveId] - 直播ID
|
|
3149
3149
|
*/
|
|
3150
3150
|
type RespLiveInfo = {
|
|
3151
3151
|
gameName: string;
|
|
@@ -3159,9 +3159,9 @@ type RespLiveInfo = {
|
|
|
3159
3159
|
sourceType: number;
|
|
3160
3160
|
liveImmersion: number;
|
|
3161
3161
|
liveCompany?: number;
|
|
3162
|
-
liveMode
|
|
3163
|
-
liveSubMode
|
|
3164
|
-
liveId
|
|
3162
|
+
liveMode?: string;
|
|
3163
|
+
liveSubMode?: string;
|
|
3164
|
+
liveId?: string;
|
|
3165
3165
|
};
|
|
3166
3166
|
|
|
3167
3167
|
/**
|
|
@@ -4188,22 +4188,22 @@ type SafeArea = {
|
|
|
4188
4188
|
* @property screenWidth - 屏幕宽度
|
|
4189
4189
|
* @property screenHeight - 屏幕高度
|
|
4190
4190
|
* @property isLandscape - 屏幕是否是横屏高度
|
|
4191
|
-
* @property pixelRatio - 设备像素比
|
|
4191
|
+
* @property [pixelRatio] - 设备像素比
|
|
4192
4192
|
* @property windowWidth - 可使用窗口宽度,单位 px
|
|
4193
4193
|
* @property windowHeight - 可使用窗口高度,单位 px
|
|
4194
|
-
* @property statusBarHeight - 状态栏的高度,单位 px
|
|
4195
|
-
* @property screenTop - 窗口上边缘的 y 值
|
|
4194
|
+
* @property [statusBarHeight] - 状态栏的高度,单位 px
|
|
4195
|
+
* @property [screenTop] - 窗口上边缘的 y 值
|
|
4196
4196
|
* @property [safeArea] - 在竖屏正方向下的安全区域。部分机型没有安全区域概念,则不返回 safeArea 字段
|
|
4197
4197
|
*/
|
|
4198
4198
|
type WindowInfo = {
|
|
4199
4199
|
screenWidth: number;
|
|
4200
4200
|
screenHeight: number;
|
|
4201
4201
|
isLandscape: boolean;
|
|
4202
|
-
pixelRatio
|
|
4202
|
+
pixelRatio?: number;
|
|
4203
4203
|
windowWidth: number;
|
|
4204
4204
|
windowHeight: number;
|
|
4205
|
-
statusBarHeight
|
|
4206
|
-
screenTop
|
|
4205
|
+
statusBarHeight?: number;
|
|
4206
|
+
screenTop?: number;
|
|
4207
4207
|
safeArea?: SafeArea;
|
|
4208
4208
|
};
|
|
4209
4209
|
|