@zegocloud/zego-uikit-prebuilt 2.15.2 → 2.17.0
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 +7 -2
- package/package.json +1 -1
- package/zego-uikit-prebuilt.js +1 -1
package/index.d.ts
CHANGED
|
@@ -225,7 +225,7 @@ declare interface ZegoCloudRoomConfig {
|
|
|
225
225
|
// Screen rotation Button
|
|
226
226
|
showRotatingScreenButton?: boolean;
|
|
227
227
|
// Screen rotation notification
|
|
228
|
-
onScreenRotation?: () => void
|
|
228
|
+
onScreenRotation?: (currentScreen: 'landscape' | 'portrait') => void
|
|
229
229
|
// User status updated
|
|
230
230
|
onUserStateUpdated?: (status: ZegoUserState) => void
|
|
231
231
|
// Member view config
|
|
@@ -238,9 +238,14 @@ declare interface ZegoCloudRoomConfig {
|
|
|
238
238
|
// 2.15.0
|
|
239
239
|
// 背景虚化及虚拟背景开关按钮
|
|
240
240
|
showBackgroundProcessButton?: boolean
|
|
241
|
-
onLocalStreamCreated?: (stream) => void
|
|
242
241
|
// 2.16.0
|
|
243
242
|
onStreamUpdate?: (streamId: string) => void
|
|
243
|
+
// 2.17.0
|
|
244
|
+
onLocalStreamUpdated?: (state: "created" | "published" | "stopped", streamId: string, stream?) => void
|
|
245
|
+
onScreenSharingStreamUpdated?: (state: "created" | "published" | "closed", streamId: string, stream?) => void
|
|
246
|
+
onWhiteboardUpdated?: (state: "created" | "closed", whiteboardId: string) => void
|
|
247
|
+
onCameraStateUpdated?: (state: "ON" | "OFF") => void
|
|
248
|
+
onMicrophoneStateUpdated?: (state: "ON" | "OFF") => void
|
|
244
249
|
}
|
|
245
250
|
|
|
246
251
|
export enum ZegoUserState {
|