livevoice-sdk-react-native 2.0.0 → 2.0.1

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 (97) hide show
  1. package/README.md +119 -7
  2. package/android/build.gradle +14 -3
  3. package/android/src/main/java/io/livevoice/react/LiveVoiceModule.kt +89 -123
  4. package/android/src/main/java/io/livevoice/react/__SDK.kt +16 -2
  5. package/ios/LiveVoiceSdkReactNative.mm +110 -37
  6. package/ios/__SDK.h +16 -2
  7. package/lib/module/components/AudioOutputSwitchView.js +13 -13
  8. package/lib/module/components/AudioOutputSwitchView.js.map +1 -1
  9. package/lib/module/components/BrandingView.js +13 -11
  10. package/lib/module/components/BrandingView.js.map +1 -1
  11. package/lib/module/components/ChannelView.js +14 -11
  12. package/lib/module/components/ChannelView.js.map +1 -1
  13. package/lib/module/components/ErrorView.js +12 -10
  14. package/lib/module/components/ErrorView.js.map +1 -1
  15. package/lib/module/components/LiveVoiceView.js +141 -72
  16. package/lib/module/components/LiveVoiceView.js.map +1 -1
  17. package/lib/module/components/PlayButtonView.js +12 -10
  18. package/lib/module/components/PlayButtonView.js.map +1 -1
  19. package/lib/module/components/ReconnectingView.js +16 -13
  20. package/lib/module/components/ReconnectingView.js.map +1 -1
  21. package/lib/module/components/WarningView.js +12 -10
  22. package/lib/module/components/WarningView.js.map +1 -1
  23. package/lib/module/components/index.js +12 -10
  24. package/lib/module/components/index.js.map +1 -1
  25. package/lib/module/index.js +14 -220
  26. package/lib/module/index.js.map +1 -1
  27. package/lib/module/sdk/LiveVoiceSdk.js +371 -0
  28. package/lib/module/sdk/LiveVoiceSdk.js.map +1 -0
  29. package/lib/module/sdk/LiveVoiceState.js +66 -0
  30. package/lib/module/sdk/LiveVoiceState.js.map +1 -0
  31. package/lib/module/specs/NativeLiveVoiceSdk.js +12 -10
  32. package/lib/module/specs/NativeLiveVoiceSdk.js.map +1 -1
  33. package/lib/module/util/Colors.js +12 -10
  34. package/lib/module/util/Colors.js.map +1 -1
  35. package/lib/module/util/ForegroundServiceConfig.js +21 -11
  36. package/lib/module/util/ForegroundServiceConfig.js.map +1 -1
  37. package/lib/module/util/PlayingState.js +12 -10
  38. package/lib/module/util/PlayingState.js.map +1 -1
  39. package/lib/module/util/Translations.js +12 -10
  40. package/lib/module/util/Translations.js.map +1 -1
  41. package/lib/module/util/logger.js +76 -0
  42. package/lib/module/util/logger.js.map +1 -0
  43. package/lib/typescript/src/components/AudioOutputSwitchView.d.ts.map +1 -1
  44. package/lib/typescript/src/components/BrandingView.d.ts.map +1 -1
  45. package/lib/typescript/src/components/ChannelView.d.ts.map +1 -1
  46. package/lib/typescript/src/components/ErrorView.d.ts.map +1 -1
  47. package/lib/typescript/src/components/LiveVoiceView.d.ts +22 -0
  48. package/lib/typescript/src/components/LiveVoiceView.d.ts.map +1 -1
  49. package/lib/typescript/src/components/PlayButtonView.d.ts.map +1 -1
  50. package/lib/typescript/src/components/ReconnectingView.d.ts.map +1 -1
  51. package/lib/typescript/src/components/WarningView.d.ts.map +1 -1
  52. package/lib/typescript/src/components/index.d.ts.map +1 -1
  53. package/lib/typescript/src/index.d.ts +6 -144
  54. package/lib/typescript/src/index.d.ts.map +1 -1
  55. package/lib/typescript/src/sdk/LiveVoiceSdk.d.ts +210 -0
  56. package/lib/typescript/src/sdk/LiveVoiceSdk.d.ts.map +1 -0
  57. package/lib/typescript/src/sdk/LiveVoiceState.d.ts +12 -0
  58. package/lib/typescript/src/sdk/LiveVoiceState.d.ts.map +1 -0
  59. package/lib/typescript/src/specs/NativeLiveVoiceSdk.d.ts +3 -0
  60. package/lib/typescript/src/specs/NativeLiveVoiceSdk.d.ts.map +1 -1
  61. package/lib/typescript/src/util/Colors.d.ts.map +1 -1
  62. package/lib/typescript/src/util/ForegroundServiceConfig.d.ts +7 -0
  63. package/lib/typescript/src/util/ForegroundServiceConfig.d.ts.map +1 -1
  64. package/lib/typescript/src/util/PlayingState.d.ts.map +1 -1
  65. package/lib/typescript/src/util/Translations.d.ts.map +1 -1
  66. package/lib/typescript/src/util/UIState.d.ts +22 -2
  67. package/lib/typescript/src/util/UIState.d.ts.map +1 -1
  68. package/lib/typescript/src/util/logger.d.ts +23 -0
  69. package/lib/typescript/src/util/logger.d.ts.map +1 -0
  70. package/livevoice-sdk-react-native.podspec +14 -14
  71. package/package.json +16 -7
  72. package/src/components/AudioOutputSwitchView.tsx +13 -13
  73. package/src/components/BrandingView.tsx +13 -11
  74. package/src/components/ChannelView.tsx +14 -11
  75. package/src/components/ErrorView.tsx +12 -10
  76. package/src/components/LiveVoiceView.tsx +183 -92
  77. package/src/components/PlayButtonView.tsx +12 -10
  78. package/src/components/ReconnectingView.tsx +20 -13
  79. package/src/components/WarningView.tsx +12 -10
  80. package/src/components/index.tsx +12 -10
  81. package/src/index.tsx +19 -252
  82. package/src/sdk/LiveVoiceSdk.ts +408 -0
  83. package/src/sdk/LiveVoiceState.ts +89 -0
  84. package/src/specs/NativeLiveVoiceSdk.ts +16 -10
  85. package/src/util/Colors.ts +12 -10
  86. package/src/util/ForegroundServiceConfig.tsx +21 -11
  87. package/src/util/PlayingState.ts +12 -10
  88. package/src/util/Translations.ts +12 -10
  89. package/src/util/UIState.ts +30 -13
  90. package/src/util/logger.ts +92 -0
  91. package/android/app/build/generated/source/codegen/java/com/facebook/fbreact/specs/NativeLiveVoiceSdkSpec.java +0 -186
  92. package/android/app/build/generated/source/codegen/jni/CMakeLists.txt +0 -28
  93. package/android/app/build/generated/source/codegen/jni/RNLiveVoiceSpec-generated.cpp +0 -235
  94. package/android/app/build/generated/source/codegen/jni/RNLiveVoiceSpec.h +0 -31
  95. package/android/app/build/generated/source/codegen/jni/react/renderer/components/RNLiveVoiceSpec/RNLiveVoiceSpecJSI.h +0 -341
  96. package/android/src/main/java/io/livevoice/react/Mappings.kt +0 -85
  97. package/android/src/main/java/io/livevoice/react/NativeModels.kt +0 -79
@@ -1,235 +0,0 @@
1
-
2
- /**
3
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
- *
5
- * Do not edit this file as changes may cause incorrect behavior and will be lost
6
- * once the code is regenerated.
7
- *
8
- * @generated by codegen project: GenerateModuleJniCpp.js
9
- */
10
-
11
- #include "RNLiveVoiceSpec.h"
12
-
13
- namespace facebook::react {
14
-
15
- static facebook::jsi::Value __hostFunction_NativeLiveVoiceSdkSpecJSI_initialize(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
16
- static jmethodID cachedMethodId = nullptr;
17
- return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, VoidKind, "initialize", "(Ljava/lang/String;)V", args, count, cachedMethodId);
18
- }
19
-
20
- static facebook::jsi::Value __hostFunction_NativeLiveVoiceSdkSpecJSI_joinEvent(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
21
- static jmethodID cachedMethodId = nullptr;
22
- return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, VoidKind, "joinEvent", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", args, count, cachedMethodId);
23
- }
24
-
25
- static facebook::jsi::Value __hostFunction_NativeLiveVoiceSdkSpecJSI_leaveEvent(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
26
- static jmethodID cachedMethodId = nullptr;
27
- return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, VoidKind, "leaveEvent", "()V", args, count, cachedMethodId);
28
- }
29
-
30
- static facebook::jsi::Value __hostFunction_NativeLiveVoiceSdkSpecJSI_reconnect(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
31
- static jmethodID cachedMethodId = nullptr;
32
- return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, VoidKind, "reconnect", "()V", args, count, cachedMethodId);
33
- }
34
-
35
- static facebook::jsi::Value __hostFunction_NativeLiveVoiceSdkSpecJSI_getCurrentClaims(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
36
- static jmethodID cachedMethodId = nullptr;
37
- return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, StringKind, "getCurrentClaims", "()Ljava/lang/String;", args, count, cachedMethodId);
38
- }
39
-
40
- static facebook::jsi::Value __hostFunction_NativeLiveVoiceSdkSpecJSI_getCurrentUiState(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
41
- static jmethodID cachedMethodId = nullptr;
42
- return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, StringKind, "getCurrentUiState", "()Ljava/lang/String;", args, count, cachedMethodId);
43
- }
44
-
45
- static facebook::jsi::Value __hostFunction_NativeLiveVoiceSdkSpecJSI_getCurrentAudioState(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
46
- static jmethodID cachedMethodId = nullptr;
47
- return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, BooleanKind, "getCurrentAudioState", "()Z", args, count, cachedMethodId);
48
- }
49
-
50
- static facebook::jsi::Value __hostFunction_NativeLiveVoiceSdkSpecJSI_getCurrentSubtitles(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
51
- static jmethodID cachedMethodId = nullptr;
52
- return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, StringKind, "getCurrentSubtitles", "()Ljava/lang/String;", args, count, cachedMethodId);
53
- }
54
-
55
- static facebook::jsi::Value __hostFunction_NativeLiveVoiceSdkSpecJSI_getCurrentAvailableSubtitleConfigs(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
56
- static jmethodID cachedMethodId = nullptr;
57
- return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, StringKind, "getCurrentAvailableSubtitleConfigs", "()Ljava/lang/String;", args, count, cachedMethodId);
58
- }
59
-
60
- static facebook::jsi::Value __hostFunction_NativeLiveVoiceSdkSpecJSI_setLiveVoiceUseSpeaker(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
61
- static jmethodID cachedMethodId = nullptr;
62
- return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, VoidKind, "setLiveVoiceUseSpeaker", "(Z)V", args, count, cachedMethodId);
63
- }
64
-
65
- static facebook::jsi::Value __hostFunction_NativeLiveVoiceSdkSpecJSI_startChannel(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
66
- static jmethodID cachedMethodId = nullptr;
67
- return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, VoidKind, "startChannel", "(D)V", args, count, cachedMethodId);
68
- }
69
-
70
- static facebook::jsi::Value __hostFunction_NativeLiveVoiceSdkSpecJSI_stopChannel(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
71
- static jmethodID cachedMethodId = nullptr;
72
- return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, VoidKind, "stopChannel", "()V", args, count, cachedMethodId);
73
- }
74
-
75
- static facebook::jsi::Value __hostFunction_NativeLiveVoiceSdkSpecJSI_startSubtitles(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
76
- static jmethodID cachedMethodId = nullptr;
77
- return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, VoidKind, "startSubtitles", "(D)V", args, count, cachedMethodId);
78
- }
79
-
80
- static facebook::jsi::Value __hostFunction_NativeLiveVoiceSdkSpecJSI_stopSubtitles(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
81
- static jmethodID cachedMethodId = nullptr;
82
- return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, VoidKind, "stopSubtitles", "()V", args, count, cachedMethodId);
83
- }
84
-
85
- static facebook::jsi::Value __hostFunction_NativeLiveVoiceSdkSpecJSI_openLiveVoiceWebsite(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
86
- static jmethodID cachedMethodId = nullptr;
87
- return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, VoidKind, "openLiveVoiceWebsite", "()V", args, count, cachedMethodId);
88
- }
89
-
90
- static facebook::jsi::Value __hostFunction_NativeLiveVoiceSdkSpecJSI_channelStatusOffline(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
91
- static jmethodID cachedMethodId = nullptr;
92
- return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, StringKind, "channelStatusOffline", "()Ljava/lang/String;", args, count, cachedMethodId);
93
- }
94
-
95
- static facebook::jsi::Value __hostFunction_NativeLiveVoiceSdkSpecJSI_noChannels(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
96
- static jmethodID cachedMethodId = nullptr;
97
- return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, StringKind, "noChannels", "()Ljava/lang/String;", args, count, cachedMethodId);
98
- }
99
-
100
- static facebook::jsi::Value __hostFunction_NativeLiveVoiceSdkSpecJSI_isAiChannelStatusMessage(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
101
- static jmethodID cachedMethodId = nullptr;
102
- return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, StringKind, "isAiChannelStatusMessage", "()Ljava/lang/String;", args, count, cachedMethodId);
103
- }
104
-
105
- static facebook::jsi::Value __hostFunction_NativeLiveVoiceSdkSpecJSI_sdkNoMatchingChannels(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
106
- static jmethodID cachedMethodId = nullptr;
107
- return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, StringKind, "sdkNoMatchingChannels", "()Ljava/lang/String;", args, count, cachedMethodId);
108
- }
109
-
110
- static facebook::jsi::Value __hostFunction_NativeLiveVoiceSdkSpecJSI_errorScreenRetrying(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
111
- static jmethodID cachedMethodId = nullptr;
112
- return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, StringKind, "errorScreenRetrying", "()Ljava/lang/String;", args, count, cachedMethodId);
113
- }
114
-
115
- static facebook::jsi::Value __hostFunction_NativeLiveVoiceSdkSpecJSI_errorScreenRetryingIn(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
116
- static jmethodID cachedMethodId = nullptr;
117
- return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, StringKind, "errorScreenRetryingIn", "(D)Ljava/lang/String;", args, count, cachedMethodId);
118
- }
119
-
120
- static facebook::jsi::Value __hostFunction_NativeLiveVoiceSdkSpecJSI_sdkErrorGeneric(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
121
- static jmethodID cachedMethodId = nullptr;
122
- return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, StringKind, "sdkErrorGeneric", "()Ljava/lang/String;", args, count, cachedMethodId);
123
- }
124
-
125
- static facebook::jsi::Value __hostFunction_NativeLiveVoiceSdkSpecJSI_sdkErrorInactive(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
126
- static jmethodID cachedMethodId = nullptr;
127
- return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, StringKind, "sdkErrorInactive", "()Ljava/lang/String;", args, count, cachedMethodId);
128
- }
129
-
130
- static facebook::jsi::Value __hostFunction_NativeLiveVoiceSdkSpecJSI_sdkErrorInvalidApiKey(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
131
- static jmethodID cachedMethodId = nullptr;
132
- return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, StringKind, "sdkErrorInvalidApiKey", "()Ljava/lang/String;", args, count, cachedMethodId);
133
- }
134
-
135
- static facebook::jsi::Value __hostFunction_NativeLiveVoiceSdkSpecJSI_sdkErrorListenerLimitReached(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
136
- static jmethodID cachedMethodId = nullptr;
137
- return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, StringKind, "sdkErrorListenerLimitReached", "()Ljava/lang/String;", args, count, cachedMethodId);
138
- }
139
-
140
- static facebook::jsi::Value __hostFunction_NativeLiveVoiceSdkSpecJSI_sdkErrorNoNetwork(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
141
- static jmethodID cachedMethodId = nullptr;
142
- return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, StringKind, "sdkErrorNoNetwork", "()Ljava/lang/String;", args, count, cachedMethodId);
143
- }
144
-
145
- static facebook::jsi::Value __hostFunction_NativeLiveVoiceSdkSpecJSI_sdkErrorNotFound(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
146
- static jmethodID cachedMethodId = nullptr;
147
- return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, StringKind, "sdkErrorNotFound", "()Ljava/lang/String;", args, count, cachedMethodId);
148
- }
149
-
150
- static facebook::jsi::Value __hostFunction_NativeLiveVoiceSdkSpecJSI_sdkErrorRequestFailed(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
151
- static jmethodID cachedMethodId = nullptr;
152
- return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, StringKind, "sdkErrorRequestFailed", "(D)Ljava/lang/String;", args, count, cachedMethodId);
153
- }
154
-
155
- static facebook::jsi::Value __hostFunction_NativeLiveVoiceSdkSpecJSI_sdkErrorWrongPassword(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
156
- static jmethodID cachedMethodId = nullptr;
157
- return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, StringKind, "sdkErrorWrongPassword", "()Ljava/lang/String;", args, count, cachedMethodId);
158
- }
159
-
160
- static facebook::jsi::Value __hostFunction_NativeLiveVoiceSdkSpecJSI_streamingByTitle(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
161
- static jmethodID cachedMethodId = nullptr;
162
- return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, StringKind, "streamingByTitle", "()Ljava/lang/String;", args, count, cachedMethodId);
163
- }
164
-
165
- static facebook::jsi::Value __hostFunction_NativeLiveVoiceSdkSpecJSI_errorRetryNowButton(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
166
- static jmethodID cachedMethodId = nullptr;
167
- return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, StringKind, "errorRetryNowButton", "()Ljava/lang/String;", args, count, cachedMethodId);
168
- }
169
-
170
- static facebook::jsi::Value __hostFunction_NativeLiveVoiceSdkSpecJSI_accessibilityChannelPlay(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
171
- static jmethodID cachedMethodId = nullptr;
172
- return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, StringKind, "accessibilityChannelPlay", "()Ljava/lang/String;", args, count, cachedMethodId);
173
- }
174
-
175
- static facebook::jsi::Value __hostFunction_NativeLiveVoiceSdkSpecJSI_accessibilityChannelStatusMuted(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
176
- static jmethodID cachedMethodId = nullptr;
177
- return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, StringKind, "accessibilityChannelStatusMuted", "()Ljava/lang/String;", args, count, cachedMethodId);
178
- }
179
-
180
- static facebook::jsi::Value __hostFunction_NativeLiveVoiceSdkSpecJSI_accessibilityChannelStop(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
181
- static jmethodID cachedMethodId = nullptr;
182
- return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, StringKind, "accessibilityChannelStop", "()Ljava/lang/String;", args, count, cachedMethodId);
183
- }
184
-
185
- NativeLiveVoiceSdkSpecJSI::NativeLiveVoiceSdkSpecJSI(const JavaTurboModule::InitParams &params)
186
- : JavaTurboModule(params) {
187
- methodMap_["initialize"] = MethodMetadata {1, __hostFunction_NativeLiveVoiceSdkSpecJSI_initialize};
188
- methodMap_["joinEvent"] = MethodMetadata {3, __hostFunction_NativeLiveVoiceSdkSpecJSI_joinEvent};
189
- methodMap_["leaveEvent"] = MethodMetadata {0, __hostFunction_NativeLiveVoiceSdkSpecJSI_leaveEvent};
190
- methodMap_["reconnect"] = MethodMetadata {0, __hostFunction_NativeLiveVoiceSdkSpecJSI_reconnect};
191
- methodMap_["getCurrentClaims"] = MethodMetadata {0, __hostFunction_NativeLiveVoiceSdkSpecJSI_getCurrentClaims};
192
- methodMap_["getCurrentUiState"] = MethodMetadata {0, __hostFunction_NativeLiveVoiceSdkSpecJSI_getCurrentUiState};
193
- methodMap_["getCurrentAudioState"] = MethodMetadata {0, __hostFunction_NativeLiveVoiceSdkSpecJSI_getCurrentAudioState};
194
- methodMap_["getCurrentSubtitles"] = MethodMetadata {0, __hostFunction_NativeLiveVoiceSdkSpecJSI_getCurrentSubtitles};
195
- methodMap_["getCurrentAvailableSubtitleConfigs"] = MethodMetadata {0, __hostFunction_NativeLiveVoiceSdkSpecJSI_getCurrentAvailableSubtitleConfigs};
196
- methodMap_["setLiveVoiceUseSpeaker"] = MethodMetadata {1, __hostFunction_NativeLiveVoiceSdkSpecJSI_setLiveVoiceUseSpeaker};
197
- methodMap_["startChannel"] = MethodMetadata {1, __hostFunction_NativeLiveVoiceSdkSpecJSI_startChannel};
198
- methodMap_["stopChannel"] = MethodMetadata {0, __hostFunction_NativeLiveVoiceSdkSpecJSI_stopChannel};
199
- methodMap_["startSubtitles"] = MethodMetadata {1, __hostFunction_NativeLiveVoiceSdkSpecJSI_startSubtitles};
200
- methodMap_["stopSubtitles"] = MethodMetadata {0, __hostFunction_NativeLiveVoiceSdkSpecJSI_stopSubtitles};
201
- methodMap_["openLiveVoiceWebsite"] = MethodMetadata {0, __hostFunction_NativeLiveVoiceSdkSpecJSI_openLiveVoiceWebsite};
202
- methodMap_["channelStatusOffline"] = MethodMetadata {0, __hostFunction_NativeLiveVoiceSdkSpecJSI_channelStatusOffline};
203
- methodMap_["noChannels"] = MethodMetadata {0, __hostFunction_NativeLiveVoiceSdkSpecJSI_noChannels};
204
- methodMap_["isAiChannelStatusMessage"] = MethodMetadata {0, __hostFunction_NativeLiveVoiceSdkSpecJSI_isAiChannelStatusMessage};
205
- methodMap_["sdkNoMatchingChannels"] = MethodMetadata {0, __hostFunction_NativeLiveVoiceSdkSpecJSI_sdkNoMatchingChannels};
206
- methodMap_["errorScreenRetrying"] = MethodMetadata {0, __hostFunction_NativeLiveVoiceSdkSpecJSI_errorScreenRetrying};
207
- methodMap_["errorScreenRetryingIn"] = MethodMetadata {1, __hostFunction_NativeLiveVoiceSdkSpecJSI_errorScreenRetryingIn};
208
- methodMap_["sdkErrorGeneric"] = MethodMetadata {0, __hostFunction_NativeLiveVoiceSdkSpecJSI_sdkErrorGeneric};
209
- methodMap_["sdkErrorInactive"] = MethodMetadata {0, __hostFunction_NativeLiveVoiceSdkSpecJSI_sdkErrorInactive};
210
- methodMap_["sdkErrorInvalidApiKey"] = MethodMetadata {0, __hostFunction_NativeLiveVoiceSdkSpecJSI_sdkErrorInvalidApiKey};
211
- methodMap_["sdkErrorListenerLimitReached"] = MethodMetadata {0, __hostFunction_NativeLiveVoiceSdkSpecJSI_sdkErrorListenerLimitReached};
212
- methodMap_["sdkErrorNoNetwork"] = MethodMetadata {0, __hostFunction_NativeLiveVoiceSdkSpecJSI_sdkErrorNoNetwork};
213
- methodMap_["sdkErrorNotFound"] = MethodMetadata {0, __hostFunction_NativeLiveVoiceSdkSpecJSI_sdkErrorNotFound};
214
- methodMap_["sdkErrorRequestFailed"] = MethodMetadata {1, __hostFunction_NativeLiveVoiceSdkSpecJSI_sdkErrorRequestFailed};
215
- methodMap_["sdkErrorWrongPassword"] = MethodMetadata {0, __hostFunction_NativeLiveVoiceSdkSpecJSI_sdkErrorWrongPassword};
216
- methodMap_["streamingByTitle"] = MethodMetadata {0, __hostFunction_NativeLiveVoiceSdkSpecJSI_streamingByTitle};
217
- methodMap_["errorRetryNowButton"] = MethodMetadata {0, __hostFunction_NativeLiveVoiceSdkSpecJSI_errorRetryNowButton};
218
- methodMap_["accessibilityChannelPlay"] = MethodMetadata {0, __hostFunction_NativeLiveVoiceSdkSpecJSI_accessibilityChannelPlay};
219
- methodMap_["accessibilityChannelStatusMuted"] = MethodMetadata {0, __hostFunction_NativeLiveVoiceSdkSpecJSI_accessibilityChannelStatusMuted};
220
- methodMap_["accessibilityChannelStop"] = MethodMetadata {0, __hostFunction_NativeLiveVoiceSdkSpecJSI_accessibilityChannelStop};
221
- eventEmitterMap_["onUiStateChanged"] = std::make_shared<AsyncEventEmitter<folly::dynamic>>();
222
- eventEmitterMap_["onAudioOutputChanged"] = std::make_shared<AsyncEventEmitter<folly::dynamic>>();
223
- eventEmitterMap_["onAvailableSubtitleConfigsChanged"] = std::make_shared<AsyncEventEmitter<folly::dynamic>>();
224
- eventEmitterMap_["onSubtitlesChanged"] = std::make_shared<AsyncEventEmitter<folly::dynamic>>();
225
- configureEventEmitterCallback();
226
- }
227
-
228
- std::shared_ptr<TurboModule> RNLiveVoiceSpec_ModuleProvider(const std::string &moduleName, const JavaTurboModule::InitParams &params) {
229
- if (moduleName == "LiveVoiceModule") {
230
- return std::make_shared<NativeLiveVoiceSdkSpecJSI>(params);
231
- }
232
- return nullptr;
233
- }
234
-
235
- } // namespace facebook::react
@@ -1,31 +0,0 @@
1
-
2
- /**
3
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
- *
5
- * Do not edit this file as changes may cause incorrect behavior and will be lost
6
- * once the code is regenerated.
7
- *
8
- * @generated by codegen project: GenerateModuleJniH.js
9
- */
10
-
11
- #pragma once
12
-
13
- #include <ReactCommon/JavaTurboModule.h>
14
- #include <ReactCommon/TurboModule.h>
15
- #include <jsi/jsi.h>
16
-
17
- namespace facebook::react {
18
-
19
- /**
20
- * JNI C++ class for module 'NativeLiveVoiceSdk'
21
- */
22
- class JSI_EXPORT NativeLiveVoiceSdkSpecJSI : public JavaTurboModule {
23
- public:
24
- NativeLiveVoiceSdkSpecJSI(const JavaTurboModule::InitParams &params);
25
- };
26
-
27
-
28
- JSI_EXPORT
29
- std::shared_ptr<TurboModule> RNLiveVoiceSpec_ModuleProvider(const std::string &moduleName, const JavaTurboModule::InitParams &params);
30
-
31
- } // namespace facebook::react
@@ -1,341 +0,0 @@
1
- /**
2
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
3
- *
4
- * Do not edit this file as changes may cause incorrect behavior and will be lost
5
- * once the code is regenerated.
6
- *
7
- * @generated by codegen project: GenerateModuleH.js
8
- */
9
-
10
- #pragma once
11
-
12
- #include <ReactCommon/TurboModule.h>
13
- #include <react/bridging/Bridging.h>
14
-
15
- namespace facebook::react {
16
-
17
-
18
- template <typename T>
19
- class JSI_EXPORT NativeLiveVoiceSdkCxxSpec : public TurboModule {
20
- public:
21
- static constexpr std::string_view kModuleName = "LiveVoiceModule";
22
-
23
- protected:
24
- NativeLiveVoiceSdkCxxSpec(std::shared_ptr<CallInvoker> jsInvoker) : TurboModule(std::string{NativeLiveVoiceSdkCxxSpec::kModuleName}, jsInvoker) {
25
- methodMap_["initialize"] = MethodMetadata {.argCount = 1, .invoker = __initialize};
26
- methodMap_["joinEvent"] = MethodMetadata {.argCount = 3, .invoker = __joinEvent};
27
- methodMap_["leaveEvent"] = MethodMetadata {.argCount = 0, .invoker = __leaveEvent};
28
- methodMap_["reconnect"] = MethodMetadata {.argCount = 0, .invoker = __reconnect};
29
- methodMap_["getCurrentClaims"] = MethodMetadata {.argCount = 0, .invoker = __getCurrentClaims};
30
- methodMap_["getCurrentUiState"] = MethodMetadata {.argCount = 0, .invoker = __getCurrentUiState};
31
- methodMap_["getCurrentAudioState"] = MethodMetadata {.argCount = 0, .invoker = __getCurrentAudioState};
32
- methodMap_["getCurrentSubtitles"] = MethodMetadata {.argCount = 0, .invoker = __getCurrentSubtitles};
33
- methodMap_["getCurrentAvailableSubtitleConfigs"] = MethodMetadata {.argCount = 0, .invoker = __getCurrentAvailableSubtitleConfigs};
34
- methodMap_["setLiveVoiceUseSpeaker"] = MethodMetadata {.argCount = 1, .invoker = __setLiveVoiceUseSpeaker};
35
- methodMap_["startChannel"] = MethodMetadata {.argCount = 1, .invoker = __startChannel};
36
- methodMap_["stopChannel"] = MethodMetadata {.argCount = 0, .invoker = __stopChannel};
37
- methodMap_["startSubtitles"] = MethodMetadata {.argCount = 1, .invoker = __startSubtitles};
38
- methodMap_["stopSubtitles"] = MethodMetadata {.argCount = 0, .invoker = __stopSubtitles};
39
- methodMap_["openLiveVoiceWebsite"] = MethodMetadata {.argCount = 0, .invoker = __openLiveVoiceWebsite};
40
- methodMap_["channelStatusOffline"] = MethodMetadata {.argCount = 0, .invoker = __channelStatusOffline};
41
- methodMap_["noChannels"] = MethodMetadata {.argCount = 0, .invoker = __noChannels};
42
- methodMap_["isAiChannelStatusMessage"] = MethodMetadata {.argCount = 0, .invoker = __isAiChannelStatusMessage};
43
- methodMap_["sdkNoMatchingChannels"] = MethodMetadata {.argCount = 0, .invoker = __sdkNoMatchingChannels};
44
- methodMap_["errorScreenRetrying"] = MethodMetadata {.argCount = 0, .invoker = __errorScreenRetrying};
45
- methodMap_["errorScreenRetryingIn"] = MethodMetadata {.argCount = 1, .invoker = __errorScreenRetryingIn};
46
- methodMap_["sdkErrorGeneric"] = MethodMetadata {.argCount = 0, .invoker = __sdkErrorGeneric};
47
- methodMap_["sdkErrorInactive"] = MethodMetadata {.argCount = 0, .invoker = __sdkErrorInactive};
48
- methodMap_["sdkErrorInvalidApiKey"] = MethodMetadata {.argCount = 0, .invoker = __sdkErrorInvalidApiKey};
49
- methodMap_["sdkErrorListenerLimitReached"] = MethodMetadata {.argCount = 0, .invoker = __sdkErrorListenerLimitReached};
50
- methodMap_["sdkErrorNoNetwork"] = MethodMetadata {.argCount = 0, .invoker = __sdkErrorNoNetwork};
51
- methodMap_["sdkErrorNotFound"] = MethodMetadata {.argCount = 0, .invoker = __sdkErrorNotFound};
52
- methodMap_["sdkErrorRequestFailed"] = MethodMetadata {.argCount = 1, .invoker = __sdkErrorRequestFailed};
53
- methodMap_["sdkErrorWrongPassword"] = MethodMetadata {.argCount = 0, .invoker = __sdkErrorWrongPassword};
54
- methodMap_["streamingByTitle"] = MethodMetadata {.argCount = 0, .invoker = __streamingByTitle};
55
- methodMap_["errorRetryNowButton"] = MethodMetadata {.argCount = 0, .invoker = __errorRetryNowButton};
56
- methodMap_["accessibilityChannelPlay"] = MethodMetadata {.argCount = 0, .invoker = __accessibilityChannelPlay};
57
- methodMap_["accessibilityChannelStatusMuted"] = MethodMetadata {.argCount = 0, .invoker = __accessibilityChannelStatusMuted};
58
- methodMap_["accessibilityChannelStop"] = MethodMetadata {.argCount = 0, .invoker = __accessibilityChannelStop};
59
- eventEmitterMap_["onUiStateChanged"] = std::make_shared<AsyncEventEmitter<jsi::Value>>();
60
- eventEmitterMap_["onAudioOutputChanged"] = std::make_shared<AsyncEventEmitter<jsi::Value>>();
61
- eventEmitterMap_["onAvailableSubtitleConfigsChanged"] = std::make_shared<AsyncEventEmitter<jsi::Value>>();
62
- eventEmitterMap_["onSubtitlesChanged"] = std::make_shared<AsyncEventEmitter<jsi::Value>>();
63
- }
64
-
65
- template <typename OnUiStateChangedType> void emitOnUiStateChanged(OnUiStateChangedType value) {
66
- static_assert(bridging::supportsFromJs<OnUiStateChangedType, jsi::String>, "value cannnot be converted to jsi::String");
67
- static_cast<AsyncEventEmitter<jsi::Value>&>(*eventEmitterMap_["onUiStateChanged"]).emit([jsInvoker = jsInvoker_, eventValue = value](jsi::Runtime& rt) -> jsi::Value {
68
- return bridging::toJs(rt, eventValue, jsInvoker);
69
- });
70
- }
71
-
72
- template <typename OnAudioOutputChangedType> void emitOnAudioOutputChanged(OnAudioOutputChangedType value) {
73
- static_assert(bridging::supportsFromJs<OnAudioOutputChangedType, bool>, "value cannnot be converted to bool");
74
- static_cast<AsyncEventEmitter<jsi::Value>&>(*eventEmitterMap_["onAudioOutputChanged"]).emit([jsInvoker = jsInvoker_, eventValue = value](jsi::Runtime& rt) -> jsi::Value {
75
- return bridging::toJs(rt, eventValue, jsInvoker);
76
- });
77
- }
78
-
79
- template <typename OnAvailableSubtitleConfigsChangedType> void emitOnAvailableSubtitleConfigsChanged(OnAvailableSubtitleConfigsChangedType value) {
80
- static_assert(bridging::supportsFromJs<OnAvailableSubtitleConfigsChangedType, jsi::String>, "value cannnot be converted to jsi::String");
81
- static_cast<AsyncEventEmitter<jsi::Value>&>(*eventEmitterMap_["onAvailableSubtitleConfigsChanged"]).emit([jsInvoker = jsInvoker_, eventValue = value](jsi::Runtime& rt) -> jsi::Value {
82
- return bridging::toJs(rt, eventValue, jsInvoker);
83
- });
84
- }
85
-
86
- template <typename OnSubtitlesChangedType> void emitOnSubtitlesChanged(OnSubtitlesChangedType value) {
87
- static_assert(bridging::supportsFromJs<OnSubtitlesChangedType, jsi::String>, "value cannnot be converted to jsi::String");
88
- static_cast<AsyncEventEmitter<jsi::Value>&>(*eventEmitterMap_["onSubtitlesChanged"]).emit([jsInvoker = jsInvoker_, eventValue = value](jsi::Runtime& rt) -> jsi::Value {
89
- return bridging::toJs(rt, eventValue, jsInvoker);
90
- });
91
- }
92
- private:
93
- static jsi::Value __initialize(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
94
- static_assert(
95
- bridging::getParameterCount(&T::initialize) == 2,
96
- "Expected initialize(...) to have 2 parameters");
97
- bridging::callFromJs<void>(rt, &T::initialize, static_cast<NativeLiveVoiceSdkCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule),
98
- count <= 0 || args[0].isNull() || args[0].isUndefined() ? std::nullopt : std::make_optional(args[0].asString(rt)));return jsi::Value::undefined();
99
- }
100
-
101
- static jsi::Value __joinEvent(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
102
- static_assert(
103
- bridging::getParameterCount(&T::joinEvent) == 4,
104
- "Expected joinEvent(...) to have 4 parameters");
105
- bridging::callFromJs<void>(rt, &T::joinEvent, static_cast<NativeLiveVoiceSdkCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule),
106
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
107
- count <= 1 || args[1].isNull() || args[1].isUndefined() ? std::nullopt : std::make_optional(args[1].asString(rt)),
108
- count <= 2 ? throw jsi::JSError(rt, "Expected argument in position 2 to be passed") : args[2].asString(rt));return jsi::Value::undefined();
109
- }
110
-
111
- static jsi::Value __leaveEvent(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* /*args*/, size_t /*count*/) {
112
- static_assert(
113
- bridging::getParameterCount(&T::leaveEvent) == 1,
114
- "Expected leaveEvent(...) to have 1 parameters");
115
- bridging::callFromJs<void>(rt, &T::leaveEvent, static_cast<NativeLiveVoiceSdkCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule));return jsi::Value::undefined();
116
- }
117
-
118
- static jsi::Value __reconnect(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* /*args*/, size_t /*count*/) {
119
- static_assert(
120
- bridging::getParameterCount(&T::reconnect) == 1,
121
- "Expected reconnect(...) to have 1 parameters");
122
- bridging::callFromJs<void>(rt, &T::reconnect, static_cast<NativeLiveVoiceSdkCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule));return jsi::Value::undefined();
123
- }
124
-
125
- static jsi::Value __getCurrentClaims(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* /*args*/, size_t /*count*/) {
126
- static_assert(
127
- bridging::getParameterCount(&T::getCurrentClaims) == 1,
128
- "Expected getCurrentClaims(...) to have 1 parameters");
129
- auto result = bridging::callFromJs<std::optional<jsi::String>>(rt, &T::getCurrentClaims, static_cast<NativeLiveVoiceSdkCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule));return result ? jsi::Value(std::move(*result)) : jsi::Value::null();
130
- }
131
-
132
- static jsi::Value __getCurrentUiState(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* /*args*/, size_t /*count*/) {
133
- static_assert(
134
- bridging::getParameterCount(&T::getCurrentUiState) == 1,
135
- "Expected getCurrentUiState(...) to have 1 parameters");
136
- return bridging::callFromJs<jsi::String>(rt, &T::getCurrentUiState, static_cast<NativeLiveVoiceSdkCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule));
137
- }
138
-
139
- static jsi::Value __getCurrentAudioState(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* /*args*/, size_t /*count*/) {
140
- static_assert(
141
- bridging::getParameterCount(&T::getCurrentAudioState) == 1,
142
- "Expected getCurrentAudioState(...) to have 1 parameters");
143
- return bridging::callFromJs<bool>(rt, &T::getCurrentAudioState, static_cast<NativeLiveVoiceSdkCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule));
144
- }
145
-
146
- static jsi::Value __getCurrentSubtitles(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* /*args*/, size_t /*count*/) {
147
- static_assert(
148
- bridging::getParameterCount(&T::getCurrentSubtitles) == 1,
149
- "Expected getCurrentSubtitles(...) to have 1 parameters");
150
- return bridging::callFromJs<jsi::String>(rt, &T::getCurrentSubtitles, static_cast<NativeLiveVoiceSdkCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule));
151
- }
152
-
153
- static jsi::Value __getCurrentAvailableSubtitleConfigs(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* /*args*/, size_t /*count*/) {
154
- static_assert(
155
- bridging::getParameterCount(&T::getCurrentAvailableSubtitleConfigs) == 1,
156
- "Expected getCurrentAvailableSubtitleConfigs(...) to have 1 parameters");
157
- return bridging::callFromJs<jsi::String>(rt, &T::getCurrentAvailableSubtitleConfigs, static_cast<NativeLiveVoiceSdkCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule));
158
- }
159
-
160
- static jsi::Value __setLiveVoiceUseSpeaker(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
161
- static_assert(
162
- bridging::getParameterCount(&T::setLiveVoiceUseSpeaker) == 2,
163
- "Expected setLiveVoiceUseSpeaker(...) to have 2 parameters");
164
- bridging::callFromJs<void>(rt, &T::setLiveVoiceUseSpeaker, static_cast<NativeLiveVoiceSdkCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule),
165
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asBool());return jsi::Value::undefined();
166
- }
167
-
168
- static jsi::Value __startChannel(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
169
- static_assert(
170
- bridging::getParameterCount(&T::startChannel) == 2,
171
- "Expected startChannel(...) to have 2 parameters");
172
- bridging::callFromJs<void>(rt, &T::startChannel, static_cast<NativeLiveVoiceSdkCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule),
173
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber());return jsi::Value::undefined();
174
- }
175
-
176
- static jsi::Value __stopChannel(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* /*args*/, size_t /*count*/) {
177
- static_assert(
178
- bridging::getParameterCount(&T::stopChannel) == 1,
179
- "Expected stopChannel(...) to have 1 parameters");
180
- bridging::callFromJs<void>(rt, &T::stopChannel, static_cast<NativeLiveVoiceSdkCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule));return jsi::Value::undefined();
181
- }
182
-
183
- static jsi::Value __startSubtitles(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
184
- static_assert(
185
- bridging::getParameterCount(&T::startSubtitles) == 2,
186
- "Expected startSubtitles(...) to have 2 parameters");
187
- bridging::callFromJs<void>(rt, &T::startSubtitles, static_cast<NativeLiveVoiceSdkCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule),
188
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber());return jsi::Value::undefined();
189
- }
190
-
191
- static jsi::Value __stopSubtitles(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* /*args*/, size_t /*count*/) {
192
- static_assert(
193
- bridging::getParameterCount(&T::stopSubtitles) == 1,
194
- "Expected stopSubtitles(...) to have 1 parameters");
195
- bridging::callFromJs<void>(rt, &T::stopSubtitles, static_cast<NativeLiveVoiceSdkCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule));return jsi::Value::undefined();
196
- }
197
-
198
- static jsi::Value __openLiveVoiceWebsite(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* /*args*/, size_t /*count*/) {
199
- static_assert(
200
- bridging::getParameterCount(&T::openLiveVoiceWebsite) == 1,
201
- "Expected openLiveVoiceWebsite(...) to have 1 parameters");
202
- bridging::callFromJs<void>(rt, &T::openLiveVoiceWebsite, static_cast<NativeLiveVoiceSdkCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule));return jsi::Value::undefined();
203
- }
204
-
205
- static jsi::Value __channelStatusOffline(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* /*args*/, size_t /*count*/) {
206
- static_assert(
207
- bridging::getParameterCount(&T::channelStatusOffline) == 1,
208
- "Expected channelStatusOffline(...) to have 1 parameters");
209
- return bridging::callFromJs<jsi::String>(rt, &T::channelStatusOffline, static_cast<NativeLiveVoiceSdkCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule));
210
- }
211
-
212
- static jsi::Value __noChannels(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* /*args*/, size_t /*count*/) {
213
- static_assert(
214
- bridging::getParameterCount(&T::noChannels) == 1,
215
- "Expected noChannels(...) to have 1 parameters");
216
- return bridging::callFromJs<jsi::String>(rt, &T::noChannels, static_cast<NativeLiveVoiceSdkCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule));
217
- }
218
-
219
- static jsi::Value __isAiChannelStatusMessage(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* /*args*/, size_t /*count*/) {
220
- static_assert(
221
- bridging::getParameterCount(&T::isAiChannelStatusMessage) == 1,
222
- "Expected isAiChannelStatusMessage(...) to have 1 parameters");
223
- return bridging::callFromJs<jsi::String>(rt, &T::isAiChannelStatusMessage, static_cast<NativeLiveVoiceSdkCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule));
224
- }
225
-
226
- static jsi::Value __sdkNoMatchingChannels(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* /*args*/, size_t /*count*/) {
227
- static_assert(
228
- bridging::getParameterCount(&T::sdkNoMatchingChannels) == 1,
229
- "Expected sdkNoMatchingChannels(...) to have 1 parameters");
230
- return bridging::callFromJs<jsi::String>(rt, &T::sdkNoMatchingChannels, static_cast<NativeLiveVoiceSdkCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule));
231
- }
232
-
233
- static jsi::Value __errorScreenRetrying(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* /*args*/, size_t /*count*/) {
234
- static_assert(
235
- bridging::getParameterCount(&T::errorScreenRetrying) == 1,
236
- "Expected errorScreenRetrying(...) to have 1 parameters");
237
- return bridging::callFromJs<jsi::String>(rt, &T::errorScreenRetrying, static_cast<NativeLiveVoiceSdkCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule));
238
- }
239
-
240
- static jsi::Value __errorScreenRetryingIn(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
241
- static_assert(
242
- bridging::getParameterCount(&T::errorScreenRetryingIn) == 2,
243
- "Expected errorScreenRetryingIn(...) to have 2 parameters");
244
- return bridging::callFromJs<jsi::String>(rt, &T::errorScreenRetryingIn, static_cast<NativeLiveVoiceSdkCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule),
245
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber());
246
- }
247
-
248
- static jsi::Value __sdkErrorGeneric(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* /*args*/, size_t /*count*/) {
249
- static_assert(
250
- bridging::getParameterCount(&T::sdkErrorGeneric) == 1,
251
- "Expected sdkErrorGeneric(...) to have 1 parameters");
252
- return bridging::callFromJs<jsi::String>(rt, &T::sdkErrorGeneric, static_cast<NativeLiveVoiceSdkCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule));
253
- }
254
-
255
- static jsi::Value __sdkErrorInactive(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* /*args*/, size_t /*count*/) {
256
- static_assert(
257
- bridging::getParameterCount(&T::sdkErrorInactive) == 1,
258
- "Expected sdkErrorInactive(...) to have 1 parameters");
259
- return bridging::callFromJs<jsi::String>(rt, &T::sdkErrorInactive, static_cast<NativeLiveVoiceSdkCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule));
260
- }
261
-
262
- static jsi::Value __sdkErrorInvalidApiKey(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* /*args*/, size_t /*count*/) {
263
- static_assert(
264
- bridging::getParameterCount(&T::sdkErrorInvalidApiKey) == 1,
265
- "Expected sdkErrorInvalidApiKey(...) to have 1 parameters");
266
- return bridging::callFromJs<jsi::String>(rt, &T::sdkErrorInvalidApiKey, static_cast<NativeLiveVoiceSdkCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule));
267
- }
268
-
269
- static jsi::Value __sdkErrorListenerLimitReached(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* /*args*/, size_t /*count*/) {
270
- static_assert(
271
- bridging::getParameterCount(&T::sdkErrorListenerLimitReached) == 1,
272
- "Expected sdkErrorListenerLimitReached(...) to have 1 parameters");
273
- return bridging::callFromJs<jsi::String>(rt, &T::sdkErrorListenerLimitReached, static_cast<NativeLiveVoiceSdkCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule));
274
- }
275
-
276
- static jsi::Value __sdkErrorNoNetwork(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* /*args*/, size_t /*count*/) {
277
- static_assert(
278
- bridging::getParameterCount(&T::sdkErrorNoNetwork) == 1,
279
- "Expected sdkErrorNoNetwork(...) to have 1 parameters");
280
- return bridging::callFromJs<jsi::String>(rt, &T::sdkErrorNoNetwork, static_cast<NativeLiveVoiceSdkCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule));
281
- }
282
-
283
- static jsi::Value __sdkErrorNotFound(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* /*args*/, size_t /*count*/) {
284
- static_assert(
285
- bridging::getParameterCount(&T::sdkErrorNotFound) == 1,
286
- "Expected sdkErrorNotFound(...) to have 1 parameters");
287
- return bridging::callFromJs<jsi::String>(rt, &T::sdkErrorNotFound, static_cast<NativeLiveVoiceSdkCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule));
288
- }
289
-
290
- static jsi::Value __sdkErrorRequestFailed(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
291
- static_assert(
292
- bridging::getParameterCount(&T::sdkErrorRequestFailed) == 2,
293
- "Expected sdkErrorRequestFailed(...) to have 2 parameters");
294
- return bridging::callFromJs<jsi::String>(rt, &T::sdkErrorRequestFailed, static_cast<NativeLiveVoiceSdkCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule),
295
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asNumber());
296
- }
297
-
298
- static jsi::Value __sdkErrorWrongPassword(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* /*args*/, size_t /*count*/) {
299
- static_assert(
300
- bridging::getParameterCount(&T::sdkErrorWrongPassword) == 1,
301
- "Expected sdkErrorWrongPassword(...) to have 1 parameters");
302
- return bridging::callFromJs<jsi::String>(rt, &T::sdkErrorWrongPassword, static_cast<NativeLiveVoiceSdkCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule));
303
- }
304
-
305
- static jsi::Value __streamingByTitle(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* /*args*/, size_t /*count*/) {
306
- static_assert(
307
- bridging::getParameterCount(&T::streamingByTitle) == 1,
308
- "Expected streamingByTitle(...) to have 1 parameters");
309
- return bridging::callFromJs<jsi::String>(rt, &T::streamingByTitle, static_cast<NativeLiveVoiceSdkCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule));
310
- }
311
-
312
- static jsi::Value __errorRetryNowButton(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* /*args*/, size_t /*count*/) {
313
- static_assert(
314
- bridging::getParameterCount(&T::errorRetryNowButton) == 1,
315
- "Expected errorRetryNowButton(...) to have 1 parameters");
316
- return bridging::callFromJs<jsi::String>(rt, &T::errorRetryNowButton, static_cast<NativeLiveVoiceSdkCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule));
317
- }
318
-
319
- static jsi::Value __accessibilityChannelPlay(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* /*args*/, size_t /*count*/) {
320
- static_assert(
321
- bridging::getParameterCount(&T::accessibilityChannelPlay) == 1,
322
- "Expected accessibilityChannelPlay(...) to have 1 parameters");
323
- return bridging::callFromJs<jsi::String>(rt, &T::accessibilityChannelPlay, static_cast<NativeLiveVoiceSdkCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule));
324
- }
325
-
326
- static jsi::Value __accessibilityChannelStatusMuted(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* /*args*/, size_t /*count*/) {
327
- static_assert(
328
- bridging::getParameterCount(&T::accessibilityChannelStatusMuted) == 1,
329
- "Expected accessibilityChannelStatusMuted(...) to have 1 parameters");
330
- return bridging::callFromJs<jsi::String>(rt, &T::accessibilityChannelStatusMuted, static_cast<NativeLiveVoiceSdkCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule));
331
- }
332
-
333
- static jsi::Value __accessibilityChannelStop(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* /*args*/, size_t /*count*/) {
334
- static_assert(
335
- bridging::getParameterCount(&T::accessibilityChannelStop) == 1,
336
- "Expected accessibilityChannelStop(...) to have 1 parameters");
337
- return bridging::callFromJs<jsi::String>(rt, &T::accessibilityChannelStop, static_cast<NativeLiveVoiceSdkCxxSpec*>(&turboModule)->jsInvoker_, static_cast<T*>(&turboModule));
338
- }
339
- };
340
-
341
- } // namespace facebook::react