@100mslive/react-native-hms 1.10.4 → 1.10.5
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/android/build.gradle +9 -2
- package/android/src/main/java/com/reactnativehmssdk/HMSDecoder.kt +8 -0
- package/android/src/main/java/com/reactnativehmssdk/HMSManager.kt +38 -0
- package/android/src/main/java/com/reactnativehmssdk/HMSRNSDK.kt +6 -4
- package/android/src/main/java/com/reactnativehmssdk/Interactivity/HMSInteractivityDecoder.kt +50 -25
- package/android/src/main/java/com/reactnativehmssdk/Interactivity/HMSRNInteractivityCenter.kt +69 -1
- package/ios/HMSConstants.swift +1 -0
- package/ios/HMSDecoder.swift +10 -2
- package/ios/HMSHLSPlayerManager.swift +4 -1
- package/ios/HMSInteractivityDecoder.swift +41 -0
- package/ios/HMSManager.m +12 -0
- package/ios/HMSManager.swift +20 -1
- package/ios/HMSRNInteractivityCenter.swift +41 -0
- package/lib/commonjs/classes/HMSInteractivityCenter.js +58 -4
- package/lib/commonjs/classes/HMSInteractivityCenter.js.map +1 -1
- package/lib/commonjs/classes/HMSInteractivityEncoder.js +6 -0
- package/lib/commonjs/classes/HMSInteractivityEncoder.js.map +1 -1
- package/lib/commonjs/classes/HMSPermissions.js +2 -0
- package/lib/commonjs/classes/HMSPermissions.js.map +1 -1
- package/lib/commonjs/classes/whiteboard/HMSWhiteboard.js +6 -0
- package/lib/commonjs/classes/whiteboard/HMSWhiteboard.js.map +1 -0
- package/lib/commonjs/classes/whiteboard/HMSWhiteboardListenerActions.js +11 -0
- package/lib/commonjs/classes/whiteboard/HMSWhiteboardListenerActions.js.map +1 -0
- package/lib/commonjs/classes/whiteboard/HMSWhiteboardState.js +12 -0
- package/lib/commonjs/classes/whiteboard/HMSWhiteboardState.js.map +1 -0
- package/lib/commonjs/classes/whiteboard/HMSWhiteboardUpdateType.js +12 -0
- package/lib/commonjs/classes/whiteboard/HMSWhiteboardUpdateType.js.map +1 -0
- package/lib/commonjs/classes/whiteboard/index.js +39 -0
- package/lib/commonjs/classes/whiteboard/index.js.map +1 -0
- package/lib/commonjs/classes/whiteboard/registerCallbacks.js +26 -0
- package/lib/commonjs/classes/whiteboard/registerCallbacks.js.map +1 -0
- package/lib/commonjs/index.js +12 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/classes/HMSInteractivityCenter.js +58 -4
- package/lib/module/classes/HMSInteractivityCenter.js.map +1 -1
- package/lib/module/classes/HMSInteractivityEncoder.js +6 -0
- package/lib/module/classes/HMSInteractivityEncoder.js.map +1 -1
- package/lib/module/classes/HMSPermissions.js +2 -0
- package/lib/module/classes/HMSPermissions.js.map +1 -1
- package/lib/module/classes/whiteboard/HMSWhiteboard.js +2 -0
- package/lib/module/classes/whiteboard/HMSWhiteboard.js.map +1 -0
- package/lib/module/classes/whiteboard/HMSWhiteboardListenerActions.js +5 -0
- package/lib/module/classes/whiteboard/HMSWhiteboardListenerActions.js.map +1 -0
- package/lib/module/classes/whiteboard/HMSWhiteboardState.js +6 -0
- package/lib/module/classes/whiteboard/HMSWhiteboardState.js.map +1 -0
- package/lib/module/classes/whiteboard/HMSWhiteboardUpdateType.js +6 -0
- package/lib/module/classes/whiteboard/HMSWhiteboardUpdateType.js.map +1 -0
- package/lib/module/classes/whiteboard/index.js +4 -0
- package/lib/module/classes/whiteboard/index.js.map +1 -0
- package/lib/module/classes/whiteboard/registerCallbacks.js +18 -0
- package/lib/module/classes/whiteboard/registerCallbacks.js.map +1 -0
- package/lib/module/index.js +1 -0
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/classes/HMSInteractivityCenter.d.ts +19 -2
- package/lib/typescript/classes/HMSInteractivityEncoder.d.ts +2 -0
- package/lib/typescript/classes/HMSPermissions.d.ts +7 -0
- package/lib/typescript/classes/whiteboard/HMSWhiteboard.d.ts +10 -0
- package/lib/typescript/classes/whiteboard/HMSWhiteboardListenerActions.d.ts +3 -0
- package/lib/typescript/classes/whiteboard/HMSWhiteboardState.d.ts +4 -0
- package/lib/typescript/classes/whiteboard/HMSWhiteboardUpdateType.d.ts +4 -0
- package/lib/typescript/classes/whiteboard/index.d.ts +3 -0
- package/lib/typescript/classes/whiteboard/registerCallbacks.d.ts +8 -0
- package/lib/typescript/index.d.ts +1 -0
- package/package.json +1 -1
- package/sdk-versions.json +2 -2
- package/src/classes/HMSInteractivityCenter.ts +89 -10
- package/src/classes/HMSInteractivityEncoder.ts +8 -0
- package/src/classes/HMSPermissions.ts +9 -0
- package/src/classes/whiteboard/HMSWhiteboard.tsx +16 -0
- package/src/classes/whiteboard/HMSWhiteboardListenerActions.ts +3 -0
- package/src/classes/whiteboard/HMSWhiteboardState.tsx +4 -0
- package/src/classes/whiteboard/HMSWhiteboardUpdateType.tsx +4 -0
- package/src/classes/whiteboard/index.ts +3 -0
- package/src/classes/whiteboard/registerCallbacks.ts +34 -0
- package/src/index.ts +1 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { HMSConstants } from '../HMSConstants';
|
|
2
|
+
import type { HMSEventSubscription } from '../HMSNativeEventEmitter';
|
|
3
|
+
import HMSNativeEventListener from '../HMSNativeEventListener';
|
|
4
|
+
import type { HMSWhiteboard } from './HMSWhiteboard';
|
|
5
|
+
import { HMSWhiteboardListenerActions } from './HMSWhiteboardListenerActions';
|
|
6
|
+
import type { HMSWhiteboardUpdateType } from './HMSWhiteboardUpdateType';
|
|
7
|
+
|
|
8
|
+
export type WhiteboardUpdateListener = (data: {
|
|
9
|
+
hmsWhiteboard: HMSWhiteboard;
|
|
10
|
+
updateType: HMSWhiteboardUpdateType;
|
|
11
|
+
}) => void;
|
|
12
|
+
|
|
13
|
+
let whiteboardUpdateSubscription: null | HMSEventSubscription = null;
|
|
14
|
+
|
|
15
|
+
export function registerWhiteboardUpdateListener(
|
|
16
|
+
listener: WhiteboardUpdateListener
|
|
17
|
+
) {
|
|
18
|
+
if (whiteboardUpdateSubscription !== null) {
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
whiteboardUpdateSubscription = HMSNativeEventListener.addListener(
|
|
22
|
+
HMSConstants.DEFAULT_SDK_ID,
|
|
23
|
+
HMSWhiteboardListenerActions.ON_WHITEBOARD_UPDATE,
|
|
24
|
+
listener
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export function unregisterWhiteboardUpdateListener() {
|
|
29
|
+
if (whiteboardUpdateSubscription === null) {
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
whiteboardUpdateSubscription.remove();
|
|
33
|
+
whiteboardUpdateSubscription = null;
|
|
34
|
+
}
|
package/src/index.ts
CHANGED
|
@@ -99,6 +99,7 @@ export type { HMSPIPConfig } from './classes/HMSPIPConfig';
|
|
|
99
99
|
export { HMSRecordingState } from './classes/HMSRecordingState';
|
|
100
100
|
export type { HMSPoll } from './classes/polls/HMSPoll';
|
|
101
101
|
export * from './classes/HMSNoiseCancellationPlugin';
|
|
102
|
+
export * from './classes/whiteboard';
|
|
102
103
|
|
|
103
104
|
export { HMSPollQuestionType } from './classes/polls/HMSPollQuestionType';
|
|
104
105
|
export { HMSPollType } from './classes/polls/HMSPollType';
|