@cometchat/calls-sdk-react-native 4.0.7 → 4.0.9-experimental.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.
- package/dist/Constants.d.ts +724 -721
- package/dist/Helper copy.d.ts +1 -1
- package/dist/Helper.d.ts +7 -7
- package/dist/api/APIHandler.d.ts +42 -42
- package/dist/api/endpoints.d.ts +7 -7
- package/dist/api/helper.d.ts +69 -69
- package/dist/api/index.d.ts +2 -2
- package/dist/constants/CallConstants.d.ts +136 -136
- package/dist/constants/index.d.ts +1 -1
- package/dist/index.d.ts +9 -9
- package/dist/index.js +59 -59
- package/dist/models/CallAppSettings.d.ts +42 -42
- package/dist/models/CallGroup.d.ts +14 -14
- package/dist/models/CallLog.d.ts +276 -276
- package/dist/models/CallLogFilterParams.d.ts +97 -97
- package/dist/models/CallSettings.d.ts +316 -316
- package/dist/models/CallUser.d.ts +14 -14
- package/dist/models/CometChatCallLogs.d.ts +193 -193
- package/dist/models/CometChatCalls.d.ts +115 -110
- package/dist/models/CometChatCallsComponent.d.ts +13 -13
- package/dist/models/CometChatCallsComponentCore.d.ts +18 -18
- package/dist/models/CometChatCallsException.d.ts +7 -7
- package/dist/models/CometChatPresenterComponent.d.ts +13 -13
- package/dist/models/ErrorModel.d.ts +11 -11
- package/dist/models/Listner.d.ts +64 -64
- package/dist/models/ListnerHandler.d.ts +10 -10
- package/dist/models/MessageComponent.d.ts +7 -7
- package/dist/models/Participant.d.ts +184 -184
- package/dist/models/PresenterSettings.d.ts +194 -194
- package/dist/models/RTCUser.d.ts +18 -18
- package/dist/models/Recording.d.ts +86 -86
- package/dist/models/index.d.ts +9 -9
- package/dist/types/ICallAppSettings.d.ts +6 -6
- package/dist/types/ICallSettings.d.ts +60 -60
- package/dist/types/RTCUser.d.ts +6 -6
- package/dist/types/callEvents.d.ts +53 -53
- package/dist/types/common.d.ts +18 -17
- package/dist/types/index.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,316 +1,316 @@
|
|
|
1
|
-
import { OngoingCallListener } from './Listner';
|
|
2
|
-
import { CallConstants } from '../Constants';
|
|
3
|
-
import { AspectRatio, Position } from '../types/common';
|
|
4
|
-
export declare class CallSettings {
|
|
5
|
-
static readonly POSITION_TOP_LEFT = "top-left";
|
|
6
|
-
static readonly POSITION_TOP_RIGHT = "top-right";
|
|
7
|
-
static readonly POSITION_BOTTOM_LEFT = "bottom-left";
|
|
8
|
-
static readonly POSITION_BOTTOM_RIGHT = "bottom-right";
|
|
9
|
-
static readonly ASPECT_RATIO_DEFAULT = "default";
|
|
10
|
-
static readonly ASPECT_RATIO_CONTAIN = "contain";
|
|
11
|
-
static readonly ASPECT_RATIO_COVER = "cover";
|
|
12
|
-
static readonly POSITION: {
|
|
13
|
-
readonly TOP_LEFT: "top-left";
|
|
14
|
-
readonly TOP_RIGHT: "top-right";
|
|
15
|
-
readonly BOTTOM_LEFT: "bottom-left";
|
|
16
|
-
readonly BOTTOM_RIGHT: "bottom-right";
|
|
17
|
-
};
|
|
18
|
-
static readonly ASPECT_RATIO: {
|
|
19
|
-
readonly DEFAULT: "default";
|
|
20
|
-
readonly CONTAIN: "contain";
|
|
21
|
-
readonly COVER: "cover";
|
|
22
|
-
};
|
|
23
|
-
private defaultLayout;
|
|
24
|
-
private isAudioOnly;
|
|
25
|
-
private listener;
|
|
26
|
-
private mode;
|
|
27
|
-
private ShowEndCallButton;
|
|
28
|
-
private ShowSwitchCameraButton;
|
|
29
|
-
private ShowMuteAudioButton;
|
|
30
|
-
private ShowPauseVideoButton;
|
|
31
|
-
private ShowAudioModeButton;
|
|
32
|
-
private StartAudioMuted;
|
|
33
|
-
private StartVideoMuted;
|
|
34
|
-
private defaultAudioMode;
|
|
35
|
-
private ShowSwitchToVideoCallButton;
|
|
36
|
-
private AvatarMode;
|
|
37
|
-
private ShowRecordingButton;
|
|
38
|
-
private StartRecordingOnCallStart;
|
|
39
|
-
private MainVideoContainerSetting;
|
|
40
|
-
private EnableVideoTileClick;
|
|
41
|
-
private enableDraggableVideoTile;
|
|
42
|
-
constructor(builder: CallSettingsBuilder);
|
|
43
|
-
isAudioOnlyCall(): boolean;
|
|
44
|
-
isDefaultLayoutEnabled(): boolean;
|
|
45
|
-
getCallEventListener(): OngoingCallListener;
|
|
46
|
-
getMode(): string;
|
|
47
|
-
isEndCallButtonEnabled(): boolean;
|
|
48
|
-
isSwitchCameraButtonEnabled(): boolean;
|
|
49
|
-
isMuteAudioButtonEnabled(): boolean;
|
|
50
|
-
isPauseVideoButtonEnabled(): boolean;
|
|
51
|
-
isAudioModeButtonEnabled(): boolean;
|
|
52
|
-
getStartWithAudioMuted(): boolean;
|
|
53
|
-
getStartWithVideoMuted(): boolean;
|
|
54
|
-
getDefaultAudioMode(): string;
|
|
55
|
-
isAudioToVideoButtonEnabled(): boolean;
|
|
56
|
-
getAvatarMode(): string;
|
|
57
|
-
isRecordingButtonEnabled(): boolean;
|
|
58
|
-
shouldStartRecordingOnCallStart(): boolean;
|
|
59
|
-
getMainVideoContainerSetting(): MainVideoContainerSetting;
|
|
60
|
-
isVideoTileClickEnabled(): boolean;
|
|
61
|
-
isVideoTileDragEnabled(): boolean;
|
|
62
|
-
}
|
|
63
|
-
type CallModes = typeof CallConstants.CALL_MODE[keyof typeof CallConstants.CALL_MODE];
|
|
64
|
-
export declare class CallSettingsBuilder {
|
|
65
|
-
/** @private */ defaultLayout: boolean;
|
|
66
|
-
/** @private */ isAudioOnly: boolean;
|
|
67
|
-
/** @private */ listener: OngoingCallListener;
|
|
68
|
-
/** @private */ mode: CallModes;
|
|
69
|
-
/** @private */ ShowEndCallButton: boolean;
|
|
70
|
-
/** @private */ ShowSwitchCameraButton: boolean;
|
|
71
|
-
/** @private */ ShowMuteAudioButton: boolean;
|
|
72
|
-
/** @private */ ShowPauseVideoButton: boolean;
|
|
73
|
-
/** @private */ ShowAudioModeButton: boolean;
|
|
74
|
-
/** @private */ StartAudioMuted: boolean;
|
|
75
|
-
/** @private */ StartVideoMuted: boolean;
|
|
76
|
-
/** @private */ defaultAudioMode: typeof CallConstants.AUDIO_MODE[keyof typeof CallConstants.AUDIO_MODE];
|
|
77
|
-
/** @private */ ShowSwitchToVideoCallButton: boolean;
|
|
78
|
-
/** @private */ AvatarMode: string;
|
|
79
|
-
/** @private */ ShowRecordingButton: boolean;
|
|
80
|
-
/** @private */ StartRecordingOnCallStart: boolean;
|
|
81
|
-
/** @private */ MainVideoContainerSetting: MainVideoContainerSetting;
|
|
82
|
-
/** @private */ EnableVideoTileClick: boolean;
|
|
83
|
-
/** @private */ enableDraggableVideoTile: boolean;
|
|
84
|
-
/**
|
|
85
|
-
*
|
|
86
|
-
* @param {boolean} defaultLayout
|
|
87
|
-
* This methods shows/hides the default button layout.
|
|
88
|
-
* If set to true the default button layout will be shown.
|
|
89
|
-
* If set to false the default button layout will be hidden.
|
|
90
|
-
* Default value is true
|
|
91
|
-
* @returns
|
|
92
|
-
*/
|
|
93
|
-
enableDefaultLayout(defaultLayout: boolean): this;
|
|
94
|
-
/**
|
|
95
|
-
*
|
|
96
|
-
* @param {boolean} isAudioOnly
|
|
97
|
-
* This methods sets the type(audio/video) of the call.
|
|
98
|
-
* If set to true, the call will be strictly an audio call.
|
|
99
|
-
* If set to false, the call will be an audio-video call.
|
|
100
|
-
* Default value is false
|
|
101
|
-
* @returns
|
|
102
|
-
*/
|
|
103
|
-
setIsAudioOnlyCall(isAudioOnly: boolean): this;
|
|
104
|
-
/**
|
|
105
|
-
*
|
|
106
|
-
* @param {OngoingCallListener} listener
|
|
107
|
-
* This method sets the call event listener.
|
|
108
|
-
* @returns
|
|
109
|
-
*/
|
|
110
|
-
setCallEventListener(listener: OngoingCallListener): this;
|
|
111
|
-
/**
|
|
112
|
-
*
|
|
113
|
-
* @param {string} mode
|
|
114
|
-
* This method sets the mode of the call.
|
|
115
|
-
* @returns
|
|
116
|
-
*/
|
|
117
|
-
setMode(mode: CallModes): this;
|
|
118
|
-
/**
|
|
119
|
-
*
|
|
120
|
-
* @param {boolean} showEndCallButton
|
|
121
|
-
* This method shows/hides the end call button.
|
|
122
|
-
* If set to true it will display the end call button.
|
|
123
|
-
* If set to false it will hide the end call button.
|
|
124
|
-
* Default value is true.
|
|
125
|
-
* @returns
|
|
126
|
-
*/
|
|
127
|
-
showEndCallButton(showEndCallButton?: boolean): this;
|
|
128
|
-
/**
|
|
129
|
-
*
|
|
130
|
-
* @param {boolean} showSwitchCameraButton
|
|
131
|
-
* This method shows/hides the switch camera button.
|
|
132
|
-
* If set to true it will display the switch camera button.
|
|
133
|
-
* If set to false it will hide the switch camera button.
|
|
134
|
-
* Note: For video call it remains hidden regardless of its value.
|
|
135
|
-
* Default value is true.
|
|
136
|
-
* @returns
|
|
137
|
-
*/
|
|
138
|
-
showSwitchCameraButton(showSwitchCameraButton?: boolean): this;
|
|
139
|
-
/**
|
|
140
|
-
*
|
|
141
|
-
* @param {boolean} showMuteAudioButton
|
|
142
|
-
* This method shows/hides the mute audio button.
|
|
143
|
-
* If set to true it will display the mute audio button.
|
|
144
|
-
* If set to false it will hide the mute audio button.
|
|
145
|
-
* Default value is true.
|
|
146
|
-
* @returns
|
|
147
|
-
*/
|
|
148
|
-
showMuteAudioButton(showMuteAudioButton?: boolean): this;
|
|
149
|
-
/**
|
|
150
|
-
*
|
|
151
|
-
* @param {boolean} showPauseVideoButton
|
|
152
|
-
* This method shows/hides the pause video button.
|
|
153
|
-
* If set to true it will display the pause video button.
|
|
154
|
-
* If set to false it will hide the pause video button.
|
|
155
|
-
* Note: For video call it remains hidden regardless of its value.
|
|
156
|
-
* Default value is true.
|
|
157
|
-
* @returns
|
|
158
|
-
*/
|
|
159
|
-
showPauseVideoButton(showPauseVideoButton?: boolean): this;
|
|
160
|
-
/**
|
|
161
|
-
*
|
|
162
|
-
* @param {boolean} showAudioModeButton
|
|
163
|
-
* This method shows/hides the audio mode button.
|
|
164
|
-
* If set to true it will display the audio mode button.
|
|
165
|
-
* If set to false it will hide the audio mode button.
|
|
166
|
-
* Default value is true.
|
|
167
|
-
* @returns
|
|
168
|
-
*/
|
|
169
|
-
showAudioModeButton(showAudioModeButton?: boolean): this;
|
|
170
|
-
/**
|
|
171
|
-
*
|
|
172
|
-
* @param {boolean} audioMuted
|
|
173
|
-
* This method allows the call to be started with audio muted.
|
|
174
|
-
* If set to true, the call will start with audio muted.
|
|
175
|
-
* Default value is false.
|
|
176
|
-
* @returns
|
|
177
|
-
*/
|
|
178
|
-
startWithAudioMuted(audioMuted?: boolean): this;
|
|
179
|
-
/**
|
|
180
|
-
*
|
|
181
|
-
* @param {boolean} videoMuted
|
|
182
|
-
* This method allows the call to be started with video muted.
|
|
183
|
-
* If set to true, the call will start with video muted.
|
|
184
|
-
* Note: This method has no effect for audio calls.
|
|
185
|
-
* Default value is false.
|
|
186
|
-
* @returns
|
|
187
|
-
*/
|
|
188
|
-
startWithVideoMuted(videoMuted?: boolean): this;
|
|
189
|
-
/**
|
|
190
|
-
*
|
|
191
|
-
* @param {string} audioMode
|
|
192
|
-
* This method will set the default audio mode.
|
|
193
|
-
* @returns
|
|
194
|
-
*/
|
|
195
|
-
setDefaultAudioMode(audioMode: typeof CallConstants.AUDIO_MODE[keyof typeof CallConstants.AUDIO_MODE]): this;
|
|
196
|
-
/**
|
|
197
|
-
*
|
|
198
|
-
* @param {boolean} showAudioToVideoSwitchButton
|
|
199
|
-
* This method shows/hides the switch to video call button.
|
|
200
|
-
* If set to true it will display the switch to video call button.
|
|
201
|
-
* If set to false it will hide the switch to video call button.
|
|
202
|
-
* Note: For video call it remains hidden regardless of its value.
|
|
203
|
-
* Default value is true.
|
|
204
|
-
* @returns
|
|
205
|
-
*/
|
|
206
|
-
showSwitchToVideoCallButton(showAudioToVideoSwitchButton?: boolean): this;
|
|
207
|
-
/**
|
|
208
|
-
*
|
|
209
|
-
* @param {string} mode
|
|
210
|
-
* This method sets the mode of avatar.
|
|
211
|
-
* The avatar mode can be circle, square or fullscreen.
|
|
212
|
-
* Default value is circle.
|
|
213
|
-
* @returns
|
|
214
|
-
*/
|
|
215
|
-
setAvatarMode(mode?: 'circle' | 'square' | 'fullscreen'): this;
|
|
216
|
-
/**
|
|
217
|
-
*
|
|
218
|
-
* @param {boolean} showRecordingButton
|
|
219
|
-
* This method shows/hides the recording button.
|
|
220
|
-
* If set to true it will display the recording button.
|
|
221
|
-
* If set to false it will hide the recording button.
|
|
222
|
-
* Default value is false.
|
|
223
|
-
* @returns
|
|
224
|
-
*/
|
|
225
|
-
showRecordingButton(showRecordingButton?: boolean): this;
|
|
226
|
-
/**
|
|
227
|
-
*
|
|
228
|
-
* @param {boolean} startRecordingOnCallStart
|
|
229
|
-
* This method starts the recording as soon as the call start.
|
|
230
|
-
* If set to true it will start the recording as soon as the call start.
|
|
231
|
-
* Default value is false.
|
|
232
|
-
* @returns
|
|
233
|
-
*/
|
|
234
|
-
startRecordingOnCallStart(startRecordingOnCallStart?: boolean): this;
|
|
235
|
-
/**
|
|
236
|
-
*
|
|
237
|
-
* @param {MainVideoContainerSetting} mainVideoContainerSetting
|
|
238
|
-
* This method can be used to customize the main video container.
|
|
239
|
-
* @returns
|
|
240
|
-
*/
|
|
241
|
-
setMainVideoContainerSetting(mainVideoContainerSetting: MainVideoContainerSetting): this;
|
|
242
|
-
/**
|
|
243
|
-
*
|
|
244
|
-
* @param {boolean} enableVideoTileClick
|
|
245
|
-
* This method can be used to enable/disable video tile click functionality in Spotlight mode.
|
|
246
|
-
* By default the video tile is clickable.
|
|
247
|
-
* @returns
|
|
248
|
-
*/
|
|
249
|
-
enableVideoTileClick(enableVideoTileClick?: boolean): this;
|
|
250
|
-
/**
|
|
251
|
-
*
|
|
252
|
-
* @param {boolean} enableVideoTileDrag
|
|
253
|
-
* This method can be used to enable/disable video tile drag functionality in Spotlight mode.
|
|
254
|
-
* By default the video tile is draggable.
|
|
255
|
-
* @returns
|
|
256
|
-
*/
|
|
257
|
-
enableVideoTileDrag(enableVideoTileDrag?: boolean): this;
|
|
258
|
-
/**
|
|
259
|
-
* This method will return an object of the CallSettings class.
|
|
260
|
-
* @returns {CallSettings}
|
|
261
|
-
*/
|
|
262
|
-
build(): CallSettings;
|
|
263
|
-
}
|
|
264
|
-
export declare class MainVideoContainerSetting {
|
|
265
|
-
private videoFit;
|
|
266
|
-
private zoomButton;
|
|
267
|
-
private fullScreenButton;
|
|
268
|
-
private userListButton;
|
|
269
|
-
private nameLabel;
|
|
270
|
-
/**
|
|
271
|
-
*
|
|
272
|
-
* @param {string} mainVideoAspectRatio
|
|
273
|
-
* This method is used to set the aspect ratio of main video.
|
|
274
|
-
* The default value is `contain`.
|
|
275
|
-
* @returns
|
|
276
|
-
*/
|
|
277
|
-
setMainVideoAspectRatio(mainVideoAspectRatio?: AspectRatio): void;
|
|
278
|
-
/**
|
|
279
|
-
*
|
|
280
|
-
* @param {Position} position
|
|
281
|
-
* @param {boolean} visibility
|
|
282
|
-
* This method is used to set the position & visibility parameter of the full screen button.
|
|
283
|
-
* By default the full screen button is visible in the `bottom-right` position.
|
|
284
|
-
* @returns
|
|
285
|
-
*/
|
|
286
|
-
setFullScreenButtonParams(position?: Position, visibility?: boolean): void;
|
|
287
|
-
/**
|
|
288
|
-
*
|
|
289
|
-
* @param {Position} position
|
|
290
|
-
* @param {boolean} visibility
|
|
291
|
-
* @param {string} backgroundColor
|
|
292
|
-
* This method is used to set the position, visibility & background color of the name label.
|
|
293
|
-
* By default the name label is visible in the `bottom-left` position with a background-color `#333333`
|
|
294
|
-
* @returns
|
|
295
|
-
*/
|
|
296
|
-
setNameLabelParams(position?: Position, visibility?: boolean, backgroundColor?: string): void;
|
|
297
|
-
/**
|
|
298
|
-
*
|
|
299
|
-
* @param {Position} position
|
|
300
|
-
* @param {boolean} visibility
|
|
301
|
-
* This method is used to set the position & visibility parameter of the zoom button.
|
|
302
|
-
* By default the zoom button is visible in the `bottom-right` position.
|
|
303
|
-
* @returns
|
|
304
|
-
*/
|
|
305
|
-
setZoomButtonParams(position?: Position, visibility?: boolean): void;
|
|
306
|
-
/**
|
|
307
|
-
*
|
|
308
|
-
* @param {Position} position
|
|
309
|
-
* @param {boolean} visibility
|
|
310
|
-
* This method is used to set the position & visibility parameter of the user list button.
|
|
311
|
-
* By default the user list button is visible in the `bottom-right` position.
|
|
312
|
-
* @returns
|
|
313
|
-
*/
|
|
314
|
-
setUserListButtonParams(position?: Position, visibility?: boolean): void;
|
|
315
|
-
}
|
|
316
|
-
export {};
|
|
1
|
+
import { OngoingCallListener } from './Listner';
|
|
2
|
+
import { CallConstants } from '../Constants';
|
|
3
|
+
import { AspectRatio, Position } from '../types/common';
|
|
4
|
+
export declare class CallSettings {
|
|
5
|
+
static readonly POSITION_TOP_LEFT = "top-left";
|
|
6
|
+
static readonly POSITION_TOP_RIGHT = "top-right";
|
|
7
|
+
static readonly POSITION_BOTTOM_LEFT = "bottom-left";
|
|
8
|
+
static readonly POSITION_BOTTOM_RIGHT = "bottom-right";
|
|
9
|
+
static readonly ASPECT_RATIO_DEFAULT = "default";
|
|
10
|
+
static readonly ASPECT_RATIO_CONTAIN = "contain";
|
|
11
|
+
static readonly ASPECT_RATIO_COVER = "cover";
|
|
12
|
+
static readonly POSITION: {
|
|
13
|
+
readonly TOP_LEFT: "top-left";
|
|
14
|
+
readonly TOP_RIGHT: "top-right";
|
|
15
|
+
readonly BOTTOM_LEFT: "bottom-left";
|
|
16
|
+
readonly BOTTOM_RIGHT: "bottom-right";
|
|
17
|
+
};
|
|
18
|
+
static readonly ASPECT_RATIO: {
|
|
19
|
+
readonly DEFAULT: "default";
|
|
20
|
+
readonly CONTAIN: "contain";
|
|
21
|
+
readonly COVER: "cover";
|
|
22
|
+
};
|
|
23
|
+
private defaultLayout;
|
|
24
|
+
private isAudioOnly;
|
|
25
|
+
private listener;
|
|
26
|
+
private mode;
|
|
27
|
+
private ShowEndCallButton;
|
|
28
|
+
private ShowSwitchCameraButton;
|
|
29
|
+
private ShowMuteAudioButton;
|
|
30
|
+
private ShowPauseVideoButton;
|
|
31
|
+
private ShowAudioModeButton;
|
|
32
|
+
private StartAudioMuted;
|
|
33
|
+
private StartVideoMuted;
|
|
34
|
+
private defaultAudioMode;
|
|
35
|
+
private ShowSwitchToVideoCallButton;
|
|
36
|
+
private AvatarMode;
|
|
37
|
+
private ShowRecordingButton;
|
|
38
|
+
private StartRecordingOnCallStart;
|
|
39
|
+
private MainVideoContainerSetting;
|
|
40
|
+
private EnableVideoTileClick;
|
|
41
|
+
private enableDraggableVideoTile;
|
|
42
|
+
constructor(builder: CallSettingsBuilder);
|
|
43
|
+
isAudioOnlyCall(): boolean;
|
|
44
|
+
isDefaultLayoutEnabled(): boolean;
|
|
45
|
+
getCallEventListener(): OngoingCallListener;
|
|
46
|
+
getMode(): string;
|
|
47
|
+
isEndCallButtonEnabled(): boolean;
|
|
48
|
+
isSwitchCameraButtonEnabled(): boolean;
|
|
49
|
+
isMuteAudioButtonEnabled(): boolean;
|
|
50
|
+
isPauseVideoButtonEnabled(): boolean;
|
|
51
|
+
isAudioModeButtonEnabled(): boolean;
|
|
52
|
+
getStartWithAudioMuted(): boolean;
|
|
53
|
+
getStartWithVideoMuted(): boolean;
|
|
54
|
+
getDefaultAudioMode(): string;
|
|
55
|
+
isAudioToVideoButtonEnabled(): boolean;
|
|
56
|
+
getAvatarMode(): string;
|
|
57
|
+
isRecordingButtonEnabled(): boolean;
|
|
58
|
+
shouldStartRecordingOnCallStart(): boolean;
|
|
59
|
+
getMainVideoContainerSetting(): MainVideoContainerSetting;
|
|
60
|
+
isVideoTileClickEnabled(): boolean;
|
|
61
|
+
isVideoTileDragEnabled(): boolean;
|
|
62
|
+
}
|
|
63
|
+
type CallModes = typeof CallConstants.CALL_MODE[keyof typeof CallConstants.CALL_MODE];
|
|
64
|
+
export declare class CallSettingsBuilder {
|
|
65
|
+
/** @private */ defaultLayout: boolean;
|
|
66
|
+
/** @private */ isAudioOnly: boolean;
|
|
67
|
+
/** @private */ listener: OngoingCallListener;
|
|
68
|
+
/** @private */ mode: CallModes;
|
|
69
|
+
/** @private */ ShowEndCallButton: boolean;
|
|
70
|
+
/** @private */ ShowSwitchCameraButton: boolean;
|
|
71
|
+
/** @private */ ShowMuteAudioButton: boolean;
|
|
72
|
+
/** @private */ ShowPauseVideoButton: boolean;
|
|
73
|
+
/** @private */ ShowAudioModeButton: boolean;
|
|
74
|
+
/** @private */ StartAudioMuted: boolean;
|
|
75
|
+
/** @private */ StartVideoMuted: boolean;
|
|
76
|
+
/** @private */ defaultAudioMode: typeof CallConstants.AUDIO_MODE[keyof typeof CallConstants.AUDIO_MODE];
|
|
77
|
+
/** @private */ ShowSwitchToVideoCallButton: boolean;
|
|
78
|
+
/** @private */ AvatarMode: string;
|
|
79
|
+
/** @private */ ShowRecordingButton: boolean;
|
|
80
|
+
/** @private */ StartRecordingOnCallStart: boolean;
|
|
81
|
+
/** @private */ MainVideoContainerSetting: MainVideoContainerSetting;
|
|
82
|
+
/** @private */ EnableVideoTileClick: boolean;
|
|
83
|
+
/** @private */ enableDraggableVideoTile: boolean;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @param {boolean} defaultLayout
|
|
87
|
+
* This methods shows/hides the default button layout.
|
|
88
|
+
* If set to true the default button layout will be shown.
|
|
89
|
+
* If set to false the default button layout will be hidden.
|
|
90
|
+
* Default value is true
|
|
91
|
+
* @returns
|
|
92
|
+
*/
|
|
93
|
+
enableDefaultLayout(defaultLayout: boolean): this;
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @param {boolean} isAudioOnly
|
|
97
|
+
* This methods sets the type(audio/video) of the call.
|
|
98
|
+
* If set to true, the call will be strictly an audio call.
|
|
99
|
+
* If set to false, the call will be an audio-video call.
|
|
100
|
+
* Default value is false
|
|
101
|
+
* @returns
|
|
102
|
+
*/
|
|
103
|
+
setIsAudioOnlyCall(isAudioOnly: boolean): this;
|
|
104
|
+
/**
|
|
105
|
+
*
|
|
106
|
+
* @param {OngoingCallListener} listener
|
|
107
|
+
* This method sets the call event listener.
|
|
108
|
+
* @returns
|
|
109
|
+
*/
|
|
110
|
+
setCallEventListener(listener: OngoingCallListener): this;
|
|
111
|
+
/**
|
|
112
|
+
*
|
|
113
|
+
* @param {string} mode
|
|
114
|
+
* This method sets the mode of the call.
|
|
115
|
+
* @returns
|
|
116
|
+
*/
|
|
117
|
+
setMode(mode: CallModes): this;
|
|
118
|
+
/**
|
|
119
|
+
*
|
|
120
|
+
* @param {boolean} showEndCallButton
|
|
121
|
+
* This method shows/hides the end call button.
|
|
122
|
+
* If set to true it will display the end call button.
|
|
123
|
+
* If set to false it will hide the end call button.
|
|
124
|
+
* Default value is true.
|
|
125
|
+
* @returns
|
|
126
|
+
*/
|
|
127
|
+
showEndCallButton(showEndCallButton?: boolean): this;
|
|
128
|
+
/**
|
|
129
|
+
*
|
|
130
|
+
* @param {boolean} showSwitchCameraButton
|
|
131
|
+
* This method shows/hides the switch camera button.
|
|
132
|
+
* If set to true it will display the switch camera button.
|
|
133
|
+
* If set to false it will hide the switch camera button.
|
|
134
|
+
* Note: For video call it remains hidden regardless of its value.
|
|
135
|
+
* Default value is true.
|
|
136
|
+
* @returns
|
|
137
|
+
*/
|
|
138
|
+
showSwitchCameraButton(showSwitchCameraButton?: boolean): this;
|
|
139
|
+
/**
|
|
140
|
+
*
|
|
141
|
+
* @param {boolean} showMuteAudioButton
|
|
142
|
+
* This method shows/hides the mute audio button.
|
|
143
|
+
* If set to true it will display the mute audio button.
|
|
144
|
+
* If set to false it will hide the mute audio button.
|
|
145
|
+
* Default value is true.
|
|
146
|
+
* @returns
|
|
147
|
+
*/
|
|
148
|
+
showMuteAudioButton(showMuteAudioButton?: boolean): this;
|
|
149
|
+
/**
|
|
150
|
+
*
|
|
151
|
+
* @param {boolean} showPauseVideoButton
|
|
152
|
+
* This method shows/hides the pause video button.
|
|
153
|
+
* If set to true it will display the pause video button.
|
|
154
|
+
* If set to false it will hide the pause video button.
|
|
155
|
+
* Note: For video call it remains hidden regardless of its value.
|
|
156
|
+
* Default value is true.
|
|
157
|
+
* @returns
|
|
158
|
+
*/
|
|
159
|
+
showPauseVideoButton(showPauseVideoButton?: boolean): this;
|
|
160
|
+
/**
|
|
161
|
+
*
|
|
162
|
+
* @param {boolean} showAudioModeButton
|
|
163
|
+
* This method shows/hides the audio mode button.
|
|
164
|
+
* If set to true it will display the audio mode button.
|
|
165
|
+
* If set to false it will hide the audio mode button.
|
|
166
|
+
* Default value is true.
|
|
167
|
+
* @returns
|
|
168
|
+
*/
|
|
169
|
+
showAudioModeButton(showAudioModeButton?: boolean): this;
|
|
170
|
+
/**
|
|
171
|
+
*
|
|
172
|
+
* @param {boolean} audioMuted
|
|
173
|
+
* This method allows the call to be started with audio muted.
|
|
174
|
+
* If set to true, the call will start with audio muted.
|
|
175
|
+
* Default value is false.
|
|
176
|
+
* @returns
|
|
177
|
+
*/
|
|
178
|
+
startWithAudioMuted(audioMuted?: boolean): this;
|
|
179
|
+
/**
|
|
180
|
+
*
|
|
181
|
+
* @param {boolean} videoMuted
|
|
182
|
+
* This method allows the call to be started with video muted.
|
|
183
|
+
* If set to true, the call will start with video muted.
|
|
184
|
+
* Note: This method has no effect for audio calls.
|
|
185
|
+
* Default value is false.
|
|
186
|
+
* @returns
|
|
187
|
+
*/
|
|
188
|
+
startWithVideoMuted(videoMuted?: boolean): this;
|
|
189
|
+
/**
|
|
190
|
+
*
|
|
191
|
+
* @param {string} audioMode
|
|
192
|
+
* This method will set the default audio mode.
|
|
193
|
+
* @returns
|
|
194
|
+
*/
|
|
195
|
+
setDefaultAudioMode(audioMode: typeof CallConstants.AUDIO_MODE[keyof typeof CallConstants.AUDIO_MODE]): this;
|
|
196
|
+
/**
|
|
197
|
+
*
|
|
198
|
+
* @param {boolean} showAudioToVideoSwitchButton
|
|
199
|
+
* This method shows/hides the switch to video call button.
|
|
200
|
+
* If set to true it will display the switch to video call button.
|
|
201
|
+
* If set to false it will hide the switch to video call button.
|
|
202
|
+
* Note: For video call it remains hidden regardless of its value.
|
|
203
|
+
* Default value is true.
|
|
204
|
+
* @returns
|
|
205
|
+
*/
|
|
206
|
+
showSwitchToVideoCallButton(showAudioToVideoSwitchButton?: boolean): this;
|
|
207
|
+
/**
|
|
208
|
+
*
|
|
209
|
+
* @param {string} mode
|
|
210
|
+
* This method sets the mode of avatar.
|
|
211
|
+
* The avatar mode can be circle, square or fullscreen.
|
|
212
|
+
* Default value is circle.
|
|
213
|
+
* @returns
|
|
214
|
+
*/
|
|
215
|
+
setAvatarMode(mode?: 'circle' | 'square' | 'fullscreen'): this;
|
|
216
|
+
/**
|
|
217
|
+
*
|
|
218
|
+
* @param {boolean} showRecordingButton
|
|
219
|
+
* This method shows/hides the recording button.
|
|
220
|
+
* If set to true it will display the recording button.
|
|
221
|
+
* If set to false it will hide the recording button.
|
|
222
|
+
* Default value is false.
|
|
223
|
+
* @returns
|
|
224
|
+
*/
|
|
225
|
+
showRecordingButton(showRecordingButton?: boolean): this;
|
|
226
|
+
/**
|
|
227
|
+
*
|
|
228
|
+
* @param {boolean} startRecordingOnCallStart
|
|
229
|
+
* This method starts the recording as soon as the call start.
|
|
230
|
+
* If set to true it will start the recording as soon as the call start.
|
|
231
|
+
* Default value is false.
|
|
232
|
+
* @returns
|
|
233
|
+
*/
|
|
234
|
+
startRecordingOnCallStart(startRecordingOnCallStart?: boolean): this;
|
|
235
|
+
/**
|
|
236
|
+
*
|
|
237
|
+
* @param {MainVideoContainerSetting} mainVideoContainerSetting
|
|
238
|
+
* This method can be used to customize the main video container.
|
|
239
|
+
* @returns
|
|
240
|
+
*/
|
|
241
|
+
setMainVideoContainerSetting(mainVideoContainerSetting: MainVideoContainerSetting): this;
|
|
242
|
+
/**
|
|
243
|
+
*
|
|
244
|
+
* @param {boolean} enableVideoTileClick
|
|
245
|
+
* This method can be used to enable/disable video tile click functionality in Spotlight mode.
|
|
246
|
+
* By default the video tile is clickable.
|
|
247
|
+
* @returns
|
|
248
|
+
*/
|
|
249
|
+
enableVideoTileClick(enableVideoTileClick?: boolean): this;
|
|
250
|
+
/**
|
|
251
|
+
*
|
|
252
|
+
* @param {boolean} enableVideoTileDrag
|
|
253
|
+
* This method can be used to enable/disable video tile drag functionality in Spotlight mode.
|
|
254
|
+
* By default the video tile is draggable.
|
|
255
|
+
* @returns
|
|
256
|
+
*/
|
|
257
|
+
enableVideoTileDrag(enableVideoTileDrag?: boolean): this;
|
|
258
|
+
/**
|
|
259
|
+
* This method will return an object of the CallSettings class.
|
|
260
|
+
* @returns {CallSettings}
|
|
261
|
+
*/
|
|
262
|
+
build(): CallSettings;
|
|
263
|
+
}
|
|
264
|
+
export declare class MainVideoContainerSetting {
|
|
265
|
+
private videoFit;
|
|
266
|
+
private zoomButton;
|
|
267
|
+
private fullScreenButton;
|
|
268
|
+
private userListButton;
|
|
269
|
+
private nameLabel;
|
|
270
|
+
/**
|
|
271
|
+
*
|
|
272
|
+
* @param {string} mainVideoAspectRatio
|
|
273
|
+
* This method is used to set the aspect ratio of main video.
|
|
274
|
+
* The default value is `contain`.
|
|
275
|
+
* @returns
|
|
276
|
+
*/
|
|
277
|
+
setMainVideoAspectRatio(mainVideoAspectRatio?: AspectRatio): void;
|
|
278
|
+
/**
|
|
279
|
+
*
|
|
280
|
+
* @param {Position} position
|
|
281
|
+
* @param {boolean} visibility
|
|
282
|
+
* This method is used to set the position & visibility parameter of the full screen button.
|
|
283
|
+
* By default the full screen button is visible in the `bottom-right` position.
|
|
284
|
+
* @returns
|
|
285
|
+
*/
|
|
286
|
+
setFullScreenButtonParams(position?: Position, visibility?: boolean): void;
|
|
287
|
+
/**
|
|
288
|
+
*
|
|
289
|
+
* @param {Position} position
|
|
290
|
+
* @param {boolean} visibility
|
|
291
|
+
* @param {string} backgroundColor
|
|
292
|
+
* This method is used to set the position, visibility & background color of the name label.
|
|
293
|
+
* By default the name label is visible in the `bottom-left` position with a background-color `#333333`
|
|
294
|
+
* @returns
|
|
295
|
+
*/
|
|
296
|
+
setNameLabelParams(position?: Position, visibility?: boolean, backgroundColor?: string): void;
|
|
297
|
+
/**
|
|
298
|
+
*
|
|
299
|
+
* @param {Position} position
|
|
300
|
+
* @param {boolean} visibility
|
|
301
|
+
* This method is used to set the position & visibility parameter of the zoom button.
|
|
302
|
+
* By default the zoom button is visible in the `bottom-right` position.
|
|
303
|
+
* @returns
|
|
304
|
+
*/
|
|
305
|
+
setZoomButtonParams(position?: Position, visibility?: boolean): void;
|
|
306
|
+
/**
|
|
307
|
+
*
|
|
308
|
+
* @param {Position} position
|
|
309
|
+
* @param {boolean} visibility
|
|
310
|
+
* This method is used to set the position & visibility parameter of the user list button.
|
|
311
|
+
* By default the user list button is visible in the `bottom-right` position.
|
|
312
|
+
* @returns
|
|
313
|
+
*/
|
|
314
|
+
setUserListButtonParams(position?: Position, visibility?: boolean): void;
|
|
315
|
+
}
|
|
316
|
+
export {};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export declare class CallUser {
|
|
2
|
-
protected uid: string;
|
|
3
|
-
protected name: string;
|
|
4
|
-
protected avatar: string;
|
|
5
|
-
constructor(object: any);
|
|
6
|
-
getUid(): string;
|
|
7
|
-
setUid(uid: string): void;
|
|
8
|
-
getName(): string;
|
|
9
|
-
setName(name: string): void;
|
|
10
|
-
getAvatar(): string;
|
|
11
|
-
setAvatar(avatar: string): void;
|
|
12
|
-
toString(): string;
|
|
13
|
-
static getUserFromJson(object: any): CallUser;
|
|
14
|
-
}
|
|
1
|
+
export declare class CallUser {
|
|
2
|
+
protected uid: string;
|
|
3
|
+
protected name: string;
|
|
4
|
+
protected avatar: string;
|
|
5
|
+
constructor(object: any);
|
|
6
|
+
getUid(): string;
|
|
7
|
+
setUid(uid: string): void;
|
|
8
|
+
getName(): string;
|
|
9
|
+
setName(name: string): void;
|
|
10
|
+
getAvatar(): string;
|
|
11
|
+
setAvatar(avatar: string): void;
|
|
12
|
+
toString(): string;
|
|
13
|
+
static getUserFromJson(object: any): CallUser;
|
|
14
|
+
}
|