@cometchat/chat-sdk-javascript 4.0.0-beta1
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/.DS_Store +0 -0
- package/dist/CometChat.js +1 -0
- package/dist/index.d.ts +5894 -0
- package/dist/javascript-chat-sdk/.git/COMMIT_EDITMSG +1 -0
- package/dist/javascript-chat-sdk/.git/FETCH_HEAD +4 -0
- package/dist/javascript-chat-sdk/.git/HEAD +1 -0
- package/dist/javascript-chat-sdk/.git/ORIG_HEAD +1 -0
- package/dist/javascript-chat-sdk/.git/config +19 -0
- package/dist/javascript-chat-sdk/.git/description +1 -0
- package/dist/javascript-chat-sdk/.git/hooks/applypatch-msg.sample +15 -0
- package/dist/javascript-chat-sdk/.git/hooks/commit-msg.sample +24 -0
- package/dist/javascript-chat-sdk/.git/hooks/fsmonitor-watchman.sample +174 -0
- package/dist/javascript-chat-sdk/.git/hooks/post-update.sample +8 -0
- package/dist/javascript-chat-sdk/.git/hooks/pre-applypatch.sample +14 -0
- package/dist/javascript-chat-sdk/.git/hooks/pre-commit.sample +49 -0
- package/dist/javascript-chat-sdk/.git/hooks/pre-merge-commit.sample +13 -0
- package/dist/javascript-chat-sdk/.git/hooks/pre-push.sample +53 -0
- package/dist/javascript-chat-sdk/.git/hooks/pre-rebase.sample +169 -0
- package/dist/javascript-chat-sdk/.git/hooks/pre-receive.sample +24 -0
- package/dist/javascript-chat-sdk/.git/hooks/prepare-commit-msg.sample +42 -0
- package/dist/javascript-chat-sdk/.git/hooks/push-to-checkout.sample +78 -0
- package/dist/javascript-chat-sdk/.git/hooks/update.sample +128 -0
- package/dist/javascript-chat-sdk/.git/index +0 -0
- package/dist/javascript-chat-sdk/.git/info/exclude +6 -0
- package/dist/javascript-chat-sdk/.git/logs/HEAD +13 -0
- package/dist/javascript-chat-sdk/.git/logs/refs/heads/master +1 -0
- package/dist/javascript-chat-sdk/.git/logs/refs/heads/master-v3 +3 -0
- package/dist/javascript-chat-sdk/.git/logs/refs/heads/master-v4 +4 -0
- package/dist/javascript-chat-sdk/.git/logs/refs/remotes/origin/HEAD +1 -0
- package/dist/javascript-chat-sdk/.git/logs/refs/remotes/origin/master-v3 +2 -0
- package/dist/javascript-chat-sdk/.git/logs/refs/remotes/origin/master-v4 +2 -0
- package/dist/javascript-chat-sdk/.git/logs/refs/stash +1 -0
- package/dist/javascript-chat-sdk/.git/objects/09/b9e17d9a0acd55c3644f4cfa19b1c40a139018 +0 -0
- package/dist/javascript-chat-sdk/.git/objects/0f/2d8999b370e8ddb236f767aa565b2aa72a6b21 +0 -0
- package/dist/javascript-chat-sdk/.git/objects/15/7f5161e31be14c74df7907c9c5046fbbea4461 +0 -0
- package/dist/javascript-chat-sdk/.git/objects/17/89200f3f5621f9df6d08d1071c59557ce5a29d +0 -0
- package/dist/javascript-chat-sdk/.git/objects/26/1de108a0253f54cf37e8a072f7f5f0098c7e89 +4 -0
- package/dist/javascript-chat-sdk/.git/objects/43/7ffc94a259dcd818cca308ab60a2780714092d +1 -0
- package/dist/javascript-chat-sdk/.git/objects/4e/6ab6a981ea6dccdb60b6438d7ca142aef269fc +0 -0
- package/dist/javascript-chat-sdk/.git/objects/5e/04a3d79cebcc2b02c14ea807f839ea73d44461 +0 -0
- package/dist/javascript-chat-sdk/.git/objects/65/bbff4d1cccc12285ea1c59a6f2082552f0d034 +0 -0
- package/dist/javascript-chat-sdk/.git/objects/6a/a6ef178cb2e3775bb149aba99ace8399525da6 +0 -0
- package/dist/javascript-chat-sdk/.git/objects/6b/e1ffe406de9ebb698ea891315b2b1459160029 +0 -0
- package/dist/javascript-chat-sdk/.git/objects/6b/efb8e9de892be7ecee5d39c30c0aa17d43d727 +2 -0
- package/dist/javascript-chat-sdk/.git/objects/6e/f136ca41bbb5684639947fa121b7eebb795592 +0 -0
- package/dist/javascript-chat-sdk/.git/objects/87/96f6311621c3ee4fc8d37eeec64a6c94e3e6ca +0 -0
- package/dist/javascript-chat-sdk/.git/objects/8b/2d226d44814b7265b68ab7953a87cd44d77965 +0 -0
- package/dist/javascript-chat-sdk/.git/objects/9c/bc4afb06153fd276e240e709984bf1099386ba +0 -0
- package/dist/javascript-chat-sdk/.git/objects/a9/6c6710dfb57871b6eccda3a94d83990ba94d9f +0 -0
- package/dist/javascript-chat-sdk/.git/objects/ad/1b70a4bb12b3fe2e6306d2b0922582036f4e42 +0 -0
- package/dist/javascript-chat-sdk/.git/objects/c1/655387f263ec50dbef8042099eead57dfe00c2 +0 -0
- package/dist/javascript-chat-sdk/.git/objects/e0/ad85d968302e5447402ed4d0bc8ace931b9167 +0 -0
- package/dist/javascript-chat-sdk/.git/objects/e8/0b03094191c92690d5bb92b4271058f188efd1 +1 -0
- package/dist/javascript-chat-sdk/.git/objects/f0/cc86624ec0504ed24dcd6a7b2cdee917b73395 +2 -0
- package/dist/javascript-chat-sdk/.git/objects/f9/95e0e3dc98868eb6404f8cdd84632ae140e1ff +2 -0
- package/dist/javascript-chat-sdk/.git/objects/fb/d9b82e03d33337a8d2606fc9e2f1652ffda3de +0 -0
- package/dist/javascript-chat-sdk/.git/objects/pack/pack-efd6261f29a0c404693064c4a255aada38ddab72.idx +0 -0
- package/dist/javascript-chat-sdk/.git/objects/pack/pack-efd6261f29a0c404693064c4a255aada38ddab72.pack +0 -0
- package/dist/javascript-chat-sdk/.git/packed-refs +107 -0
- package/dist/javascript-chat-sdk/.git/refs/heads/master +1 -0
- package/dist/javascript-chat-sdk/.git/refs/heads/master-v3 +1 -0
- package/dist/javascript-chat-sdk/.git/refs/heads/master-v4 +1 -0
- package/dist/javascript-chat-sdk/.git/refs/remotes/origin/HEAD +1 -0
- package/dist/javascript-chat-sdk/.git/refs/remotes/origin/master-v3 +1 -0
- package/dist/javascript-chat-sdk/.git/refs/remotes/origin/master-v4 +1 -0
- package/dist/javascript-chat-sdk/.git/refs/stash +1 -0
- package/dist/javascript-chat-sdk/.gitignore +2 -0
- package/dist/javascript-chat-sdk/CometChat.d.ts +4732 -0
- package/dist/javascript-chat-sdk/CometChat.js +1 -0
- package/dist/javascript-chat-sdk/LICENSE.md +3 -0
- package/dist/javascript-chat-sdk/README.md +189 -0
- package/dist/javascript-chat-sdk/package.json +36 -0
- package/dist/package.json +36 -0
- package/dist/type/index.d.ts +10 -0
- package/dist/type/lib/BannedMembersRequest.d.ts +60 -0
- package/dist/type/lib/BlockedUsersRequest.d.ts +67 -0
- package/dist/type/lib/CallSettings.d.ts +429 -0
- package/dist/type/lib/CometChat.d.ts +1954 -0
- package/dist/type/lib/CometChatErrorConstants.d.ts +124 -0
- package/dist/type/lib/CometChatHelper.d.ts +26 -0
- package/dist/type/lib/Constants.d.ts +953 -0
- package/dist/type/lib/ConversationRequest.d.ts +89 -0
- package/dist/type/lib/GroupMembersRequest.d.ts +61 -0
- package/dist/type/lib/GroupsRequest.d.ts +78 -0
- package/dist/type/lib/Helper.d.ts +46 -0
- package/dist/type/lib/ListenerHandlers.d.ts +101 -0
- package/dist/type/lib/MessagesRequest.d.ts +188 -0
- package/dist/type/lib/UsersRequest.d.ts +142 -0
- package/dist/type/lib/WebSockets/WSConnectionHelper.d.ts +41 -0
- package/dist/type/lib/WebSockets/WSConstants.d.ts +71 -0
- package/dist/type/lib/WebSockets/WSHelper.d.ts +3 -0
- package/dist/type/lib/controllers/CallController.d.ts +151 -0
- package/dist/type/lib/controllers/ConversationController.d.ts +14 -0
- package/dist/type/lib/controllers/GroupMemberController.d.ts +10 -0
- package/dist/type/lib/controllers/GroupsController.d.ts +9 -0
- package/dist/type/lib/controllers/MessageController.d.ts +18 -0
- package/dist/type/lib/controllers/PresenceController.d.ts +0 -0
- package/dist/type/lib/controllers/TypingNotificationController.d.ts +14 -0
- package/dist/type/lib/controllers/UserAuthController.d.ts +10 -0
- package/dist/type/lib/controllers/UsersController.d.ts +9 -0
- package/dist/type/lib/localStore/KeyStore.d.ts +45 -0
- package/dist/type/lib/localStore/MessageListenerEventMaping.d.ts +56 -0
- package/dist/type/lib/localStore/MessagesStore.d.ts +72 -0
- package/dist/type/lib/localStore/UserStore.d.ts +72 -0
- package/dist/type/lib/localStore/store.d.ts +61 -0
- package/dist/type/lib/models/Action.d.ts +159 -0
- package/dist/type/lib/models/AppSettings.d.ts +135 -0
- package/dist/type/lib/models/BaseMessage.d.ts +259 -0
- package/dist/type/lib/models/CCExtension.d.ts +15 -0
- package/dist/type/lib/models/Call.d.ts +159 -0
- package/dist/type/lib/models/CometChatAuthEvent.d.ts +25 -0
- package/dist/type/lib/models/CometChatEvent.d.ts +25 -0
- package/dist/type/lib/models/CometChatMessageEvent.d.ts +9 -0
- package/dist/type/lib/models/CometChatPingEvent.d.ts +6 -0
- package/dist/type/lib/models/CometChatPresenceEvent.d.ts +15 -0
- package/dist/type/lib/models/CometChatReceiptEvent.d.ts +14 -0
- package/dist/type/lib/models/CometChatTransientEvent.d.ts +11 -0
- package/dist/type/lib/models/CometChatTypingEvent.d.ts +14 -0
- package/dist/type/lib/models/ConversationModel.d.ts +73 -0
- package/dist/type/lib/models/CustomError.d.ts +13 -0
- package/dist/type/lib/models/CustomMessage.d.ts +71 -0
- package/dist/type/lib/models/ErrorModel.d.ts +12 -0
- package/dist/type/lib/models/Group.d.ts +190 -0
- package/dist/type/lib/models/GroupMember.d.ts +43 -0
- package/dist/type/lib/models/Listner.d.ts +258 -0
- package/dist/type/lib/models/MediaDevice.d.ts +36 -0
- package/dist/type/lib/models/MediaMessage.d.ts +115 -0
- package/dist/type/lib/models/MessageReceipt.d.ts +99 -0
- package/dist/type/lib/models/RTCUser.d.ts +18 -0
- package/dist/type/lib/models/TextMessage.d.ts +84 -0
- package/dist/type/lib/models/TransientMessage.d.ts +48 -0
- package/dist/type/lib/models/TypingNotification.d.ts +52 -0
- package/dist/type/lib/models/UserModel.d.ts +175 -0
- package/dist/type/lib/models/UserPresence.d.ts +0 -0
- package/dist/type/lib/models/attachment.d.ts +74 -0
- package/dist/type/lib/rest-api/EndPointUtils.d.ts +9 -0
- package/dist/type/lib/rest-api/EndpointFactory.d.ts +28 -0
- package/dist/type/lib/rest-api/HttpHelper.d.ts +10 -0
- package/package.json +48 -0
- package/readme.md +189 -0
|
@@ -0,0 +1,429 @@
|
|
|
1
|
+
import { RTCUser } from "./models/RTCUser";
|
|
2
|
+
export declare class CallSettings {
|
|
3
|
+
static POSITION_TOP_LEFT: string;
|
|
4
|
+
static POSITION_TOP_RIGHT: string;
|
|
5
|
+
static POSITION_BOTTOM_LEFT: string;
|
|
6
|
+
static POSITION_BOTTOM_RIGHT: string;
|
|
7
|
+
static ASPECT_RATIO_DEFAULT: string;
|
|
8
|
+
static ASPECT_RATIO_CONTAIN: string;
|
|
9
|
+
static ASPECT_RATIO_COVER: string;
|
|
10
|
+
private sessionID;
|
|
11
|
+
private defaultLayout;
|
|
12
|
+
private isAudioOnly;
|
|
13
|
+
private region;
|
|
14
|
+
private appId;
|
|
15
|
+
private domain;
|
|
16
|
+
private user;
|
|
17
|
+
private mode;
|
|
18
|
+
private ShowEndCallButton;
|
|
19
|
+
private ShowMuteAudioButton;
|
|
20
|
+
private ShowPauseVideoButton;
|
|
21
|
+
private ShowScreenShareButton;
|
|
22
|
+
private ShowSwitchModeButton;
|
|
23
|
+
private StartAudioMuted;
|
|
24
|
+
private StartVideoMuted;
|
|
25
|
+
private localizedObject;
|
|
26
|
+
private analyticsSettings;
|
|
27
|
+
private customCSS;
|
|
28
|
+
private ShowRecordingButton;
|
|
29
|
+
private StartRecordingOnCallStart;
|
|
30
|
+
private useLegacyUI;
|
|
31
|
+
private ShowSwitchToVideoCallButton;
|
|
32
|
+
private VirtualBackground;
|
|
33
|
+
private ShowVirtualBackgroundSetting;
|
|
34
|
+
private MainVideoContainerSetting;
|
|
35
|
+
constructor(builder?: CallSettingsBuilder);
|
|
36
|
+
shouldUseLegacyUI(): boolean;
|
|
37
|
+
isRecordingButtonEnabled(): boolean;
|
|
38
|
+
shouldStartRecordingOnCallStart(): boolean;
|
|
39
|
+
getCustomCSS(): string;
|
|
40
|
+
getSessionId(): string;
|
|
41
|
+
isAudioOnlyCall(): boolean;
|
|
42
|
+
getUser(): RTCUser;
|
|
43
|
+
getRegion(): string;
|
|
44
|
+
getAppId(): string;
|
|
45
|
+
getDomain(): string;
|
|
46
|
+
isDefaultLayoutEnabled(): boolean;
|
|
47
|
+
getMode(): string;
|
|
48
|
+
getStartWithAudioMuted(): boolean;
|
|
49
|
+
getStartWithVideoMuted(): boolean;
|
|
50
|
+
isEndCallButtonEnabled(): boolean;
|
|
51
|
+
isMuteAudioButtonEnabled(): boolean;
|
|
52
|
+
isPauseVideoButtonEnabled(): boolean;
|
|
53
|
+
isScreenShareButtonEnabled(): boolean;
|
|
54
|
+
isModeButtonEnabled(): boolean;
|
|
55
|
+
getLocalizedStringObject(): Object;
|
|
56
|
+
getAnalyticsSettings(): Object;
|
|
57
|
+
isAudioToVideoButtonEnabled(): boolean;
|
|
58
|
+
getVirtualBackground(): VirtualBackground;
|
|
59
|
+
isVirtualBackgroundSettingEnabled(): boolean;
|
|
60
|
+
getMainVideoContainerSetting(): MainVideoContainerSetting;
|
|
61
|
+
}
|
|
62
|
+
export declare class CallSettingsBuilder {
|
|
63
|
+
/** @private */ sessionID: string;
|
|
64
|
+
/** @private */ defaultLayout: boolean;
|
|
65
|
+
/** @private */ isAudioOnly: boolean;
|
|
66
|
+
/** @private */ region: string;
|
|
67
|
+
/** @private */ domain: string;
|
|
68
|
+
/** @private */ user: RTCUser;
|
|
69
|
+
/** @private */ mode: string;
|
|
70
|
+
/** @private */ ShowEndCallButton: boolean;
|
|
71
|
+
/** @private */ ShowMuteAudioButton: boolean;
|
|
72
|
+
/** @private */ ShowPauseVideoButton: boolean;
|
|
73
|
+
/** @private */ ShowScreenShareButton: boolean;
|
|
74
|
+
/** @private */ ShowSwitchModeButton: boolean;
|
|
75
|
+
/** @private */ StartAudioMuted: boolean;
|
|
76
|
+
/** @private */ StartVideoMuted: boolean;
|
|
77
|
+
/** @private */ localizedObject: Object;
|
|
78
|
+
/** @private */ analyticsSettings: Object;
|
|
79
|
+
/** @private */ appId: string;
|
|
80
|
+
/** @private */ customCSS: string;
|
|
81
|
+
/** @private */ ShowRecordingButton: boolean;
|
|
82
|
+
/** @private */ StartRecordingOnCallStart: boolean;
|
|
83
|
+
/** @private */ useLegacyUI: boolean;
|
|
84
|
+
/** @private */ ShowSwitchToVideoCallButton: boolean;
|
|
85
|
+
/** @private */ virtualBackground: VirtualBackground;
|
|
86
|
+
/** @private */ ShowVirtualBackgroundSetting: boolean;
|
|
87
|
+
/** @private */ MainVideoContainerSetting: MainVideoContainerSetting;
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @param {string} sessionID
|
|
91
|
+
* This methods sets the session ID of the call.
|
|
92
|
+
* @returns
|
|
93
|
+
*/
|
|
94
|
+
setSessionID(sessionID: string): this;
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* @param {boolean} defaultLayout
|
|
98
|
+
* This methods shows/hides the default button layout.
|
|
99
|
+
* If set to true the default button layout will be shown.
|
|
100
|
+
* If set to false the default button layout will be hidden.
|
|
101
|
+
* Default value is true
|
|
102
|
+
* @returns
|
|
103
|
+
*/
|
|
104
|
+
enableDefaultLayout(defaultLayout: boolean): this;
|
|
105
|
+
/**
|
|
106
|
+
*
|
|
107
|
+
* @param {boolean} isAudioOnly
|
|
108
|
+
* This methods sets the type(audio/video) of the call.
|
|
109
|
+
* If set to true, the call will be strictly an audio call.
|
|
110
|
+
* If set to false, the call will be an audio-video call.
|
|
111
|
+
* Default value is false
|
|
112
|
+
* @returns
|
|
113
|
+
*/
|
|
114
|
+
setIsAudioOnlyCall(isAudioOnly: boolean): this;
|
|
115
|
+
/**
|
|
116
|
+
* @private
|
|
117
|
+
* @param {string} region
|
|
118
|
+
* This method sets the region of the app.
|
|
119
|
+
* @returns
|
|
120
|
+
*/
|
|
121
|
+
setRegion(region: string): this;
|
|
122
|
+
/**
|
|
123
|
+
* @private
|
|
124
|
+
* @param {string} domain
|
|
125
|
+
* This method sets the domain of the app.
|
|
126
|
+
* @returns
|
|
127
|
+
*/
|
|
128
|
+
setDomain(domain: string): this;
|
|
129
|
+
/**
|
|
130
|
+
* @private
|
|
131
|
+
* @param {RTCUser} user
|
|
132
|
+
* This method sets the user.
|
|
133
|
+
* @returns
|
|
134
|
+
*/
|
|
135
|
+
setUser(user: RTCUser): this;
|
|
136
|
+
/**
|
|
137
|
+
*
|
|
138
|
+
* @param {string} mode
|
|
139
|
+
* This method sets the mode of the call.
|
|
140
|
+
* @returns
|
|
141
|
+
*/
|
|
142
|
+
setMode(mode: string): this;
|
|
143
|
+
/**
|
|
144
|
+
*
|
|
145
|
+
* @param {boolean} showEndCallButton
|
|
146
|
+
* This method shows/hides the end call button.
|
|
147
|
+
* If set to true it will display the end call button.
|
|
148
|
+
* If set to false it will hide the end call button.
|
|
149
|
+
* Default value is true.
|
|
150
|
+
* @returns
|
|
151
|
+
*/
|
|
152
|
+
showEndCallButton(showEndCallButton: boolean): this;
|
|
153
|
+
/**
|
|
154
|
+
*
|
|
155
|
+
* @param {boolean} showMuteAudioButton
|
|
156
|
+
* This method shows/hides the mute audio button.
|
|
157
|
+
* If set to true it will display the mute audio button.
|
|
158
|
+
* If set to false it will hide the mute audio button.
|
|
159
|
+
* Default value is true.
|
|
160
|
+
* @returns
|
|
161
|
+
*/
|
|
162
|
+
showMuteAudioButton(showMuteAudioButton: boolean): this;
|
|
163
|
+
/**
|
|
164
|
+
*
|
|
165
|
+
* @param {boolean} showPauseVideoButton
|
|
166
|
+
* This method shows/hides the pause video button.
|
|
167
|
+
* If set to true it will display the pause video button.
|
|
168
|
+
* If set to false it will hide the pause video button.
|
|
169
|
+
* Default value is true.
|
|
170
|
+
* @returns
|
|
171
|
+
*/
|
|
172
|
+
showPauseVideoButton(showPauseVideoButton: boolean): this;
|
|
173
|
+
/**
|
|
174
|
+
*
|
|
175
|
+
* @param {boolean} showScreenShareButton
|
|
176
|
+
* This method shows/hides the screen share button.
|
|
177
|
+
* If set to true it will display the screen share button.
|
|
178
|
+
* If set to false it will hide the screen share button.
|
|
179
|
+
* Default value is true.
|
|
180
|
+
* @returns
|
|
181
|
+
*/
|
|
182
|
+
showScreenShareButton(showScreenShareButton: boolean): this;
|
|
183
|
+
/**
|
|
184
|
+
*
|
|
185
|
+
* @param {boolean} showModeButton
|
|
186
|
+
* This method shows/hides the switch mode button.
|
|
187
|
+
* If set to true it will display the switch mode button.
|
|
188
|
+
* If set to false it will hide the switch mode button.
|
|
189
|
+
* Default value is true.
|
|
190
|
+
* @returns
|
|
191
|
+
*/
|
|
192
|
+
showModeButton(showModeButton: boolean): this;
|
|
193
|
+
/**
|
|
194
|
+
*
|
|
195
|
+
* @param {Object} localizedStringObject
|
|
196
|
+
* This method will set the localized text in the call screen.
|
|
197
|
+
* @returns
|
|
198
|
+
*/
|
|
199
|
+
setLocalizedStringObject(localizedStringObject: Object): this;
|
|
200
|
+
/**
|
|
201
|
+
* @private
|
|
202
|
+
* @param {Object} analyticsSettings
|
|
203
|
+
* This method will set the settings required for analytics.
|
|
204
|
+
* @returns
|
|
205
|
+
*/
|
|
206
|
+
setAnalyticsSettings(analyticsSettings: Object): this;
|
|
207
|
+
/**
|
|
208
|
+
*
|
|
209
|
+
* @param {string} appId
|
|
210
|
+
* This method will set the appID.
|
|
211
|
+
* @returns
|
|
212
|
+
*/
|
|
213
|
+
setAppId(appId: string): this;
|
|
214
|
+
/**
|
|
215
|
+
*
|
|
216
|
+
* @param {boolean} audioMuted
|
|
217
|
+
* This method allows the call to be started with audio muted.
|
|
218
|
+
* If set to true, the call will start with audio muted.
|
|
219
|
+
* Default value is false.
|
|
220
|
+
* @returns
|
|
221
|
+
*/
|
|
222
|
+
startWithAudioMuted(audioMuted: boolean): this;
|
|
223
|
+
/**
|
|
224
|
+
*
|
|
225
|
+
* @param {boolean} videoMuted
|
|
226
|
+
* This method allows the call to be started with video muted.
|
|
227
|
+
* If set to true, the call will start with video muted.
|
|
228
|
+
* Default value is false.
|
|
229
|
+
* @returns
|
|
230
|
+
*/
|
|
231
|
+
startWithVideoMuted(videoMuted: boolean): this;
|
|
232
|
+
/**
|
|
233
|
+
*
|
|
234
|
+
* @param {boolean} customCSS
|
|
235
|
+
* This method will set the custom CSS of the call screen.
|
|
236
|
+
* @returns
|
|
237
|
+
*/
|
|
238
|
+
setCustomCSS(customCSS: string): this;
|
|
239
|
+
/**
|
|
240
|
+
*
|
|
241
|
+
* @param {boolean} showRecordingButton
|
|
242
|
+
* This method shows/hides the recording button.
|
|
243
|
+
* If set to true it will display the recording button.
|
|
244
|
+
* If set to false it will hide the recording button.
|
|
245
|
+
* Default value is false.
|
|
246
|
+
* @returns
|
|
247
|
+
*/
|
|
248
|
+
showRecordingButton(showRecordingButton: boolean): this;
|
|
249
|
+
/**
|
|
250
|
+
*
|
|
251
|
+
* @param {boolean} startRecordingOnCallStart
|
|
252
|
+
* This method starts the recording as soon as the call start.
|
|
253
|
+
* If set to true it will start the recording as soon as the call start.
|
|
254
|
+
* Default value is false.
|
|
255
|
+
* @returns
|
|
256
|
+
*/
|
|
257
|
+
startRecordingOnCallStart(startRecordingOnCallStart: boolean): this;
|
|
258
|
+
/**
|
|
259
|
+
*
|
|
260
|
+
* @param {boolean} legacyUI
|
|
261
|
+
* This method will render the legacy call UI.
|
|
262
|
+
* If set to true it will render the legacy call UI.
|
|
263
|
+
* Default value is false.
|
|
264
|
+
* @returns
|
|
265
|
+
*/
|
|
266
|
+
forceLegacyUI(legacyUI: boolean): this;
|
|
267
|
+
/**
|
|
268
|
+
*
|
|
269
|
+
* @param {boolean} showAudioToVideoSwitchButton
|
|
270
|
+
* This method shows/hides the switch to video call button.
|
|
271
|
+
* If set to true it will display the switch to video call button.
|
|
272
|
+
* If set to false it will hide the switch to video call button.
|
|
273
|
+
* Default value is true.
|
|
274
|
+
* @returns
|
|
275
|
+
*/
|
|
276
|
+
showSwitchToVideoCallButton(showAudioToVideoSwitchButton: boolean): this;
|
|
277
|
+
/**
|
|
278
|
+
*
|
|
279
|
+
* @param {VirtualBackground} virtualBackground
|
|
280
|
+
* This method will set the virtual background setting.
|
|
281
|
+
* This methods takes an Object of VirtualBackground Class.
|
|
282
|
+
* @returns
|
|
283
|
+
*/
|
|
284
|
+
setVirtualBackground(virtualBackground: VirtualBackground): this;
|
|
285
|
+
/**
|
|
286
|
+
*
|
|
287
|
+
* @param {boolean} showVirtualBackgroundSetting
|
|
288
|
+
* This method shows/hides the virtual background setting button.
|
|
289
|
+
* If set to true it will display the virtual background setting button.
|
|
290
|
+
* If set to false it will hide the virtual background setting button.
|
|
291
|
+
* Default value is true.
|
|
292
|
+
* @returns
|
|
293
|
+
*/
|
|
294
|
+
showVirtualBackgroundSetting(showVirtualBackgroundSetting: boolean): this;
|
|
295
|
+
/**
|
|
296
|
+
*
|
|
297
|
+
* @param {MainVideoContainerSetting} mainVideoContainerSetting
|
|
298
|
+
* This method can be used to customize the main video container.
|
|
299
|
+
* @returns
|
|
300
|
+
*/
|
|
301
|
+
setMainVideoContainerSetting(mainVideoContainerSetting: MainVideoContainerSetting): this;
|
|
302
|
+
/**
|
|
303
|
+
* This method will return an object of the CallSettings class.
|
|
304
|
+
* @returns {CallSettings}
|
|
305
|
+
*/
|
|
306
|
+
build(): CallSettings;
|
|
307
|
+
}
|
|
308
|
+
export declare class VirtualBackground {
|
|
309
|
+
private AllowBackgroundBlur;
|
|
310
|
+
private AllowUserImages;
|
|
311
|
+
private ShowDefaultImages;
|
|
312
|
+
private SetImages;
|
|
313
|
+
private EnforceBackgroundBlur;
|
|
314
|
+
private EnforceBackgroundImage;
|
|
315
|
+
constructor(builder?: VirtualBackgroundBuilder);
|
|
316
|
+
shouldAllowBackgroundBlur(): boolean;
|
|
317
|
+
shouldAllowUserImages(): boolean;
|
|
318
|
+
shouldShowDefaultImages(): boolean;
|
|
319
|
+
getImages(): Array<String>;
|
|
320
|
+
isBackgroundBlurEnforced(): number;
|
|
321
|
+
getEnforcedBackgroundImage(): string;
|
|
322
|
+
}
|
|
323
|
+
export declare class VirtualBackgroundBuilder {
|
|
324
|
+
/** @private */ AllowBackgroundBlur: boolean;
|
|
325
|
+
/** @private */ AllowUserImages: boolean;
|
|
326
|
+
/** @private */ ShowDefaultImages: boolean;
|
|
327
|
+
/** @private */ SetImages: Array<String>;
|
|
328
|
+
/** @private */ EnforceBackgroundBlur: number;
|
|
329
|
+
/** @private */ EnforceBackgroundImage: string;
|
|
330
|
+
/**
|
|
331
|
+
*
|
|
332
|
+
* @param {boolean} AllowBackgroundBlur
|
|
333
|
+
* This method will show the background blur option in Virtual Background.
|
|
334
|
+
* If set to true it will show the background blur option.
|
|
335
|
+
* Default value is true.
|
|
336
|
+
* @returns
|
|
337
|
+
*/
|
|
338
|
+
allowBackgroundBlur(AllowBackgroundBlur: boolean): this;
|
|
339
|
+
/**
|
|
340
|
+
*
|
|
341
|
+
* @param {boolean} AllowUserImage
|
|
342
|
+
* This method will allow the user to add custom images as background.
|
|
343
|
+
* If set to true it will allow the user to add custom images as background.
|
|
344
|
+
* Default value is true.
|
|
345
|
+
* @returns
|
|
346
|
+
*/
|
|
347
|
+
allowUserImages(AllowUserImages: boolean): this;
|
|
348
|
+
/**
|
|
349
|
+
*
|
|
350
|
+
* @param {boolean} ShowDefaultImages
|
|
351
|
+
* This method will show the default images to be used as background.
|
|
352
|
+
* If set to true it will show the default images to be used as background.
|
|
353
|
+
* Default value is true.
|
|
354
|
+
* @returns
|
|
355
|
+
*/
|
|
356
|
+
showDefaultImages(ShowDefaultImages: boolean): this;
|
|
357
|
+
/**
|
|
358
|
+
*
|
|
359
|
+
* @param {boolean} SetImages
|
|
360
|
+
* This method will allow user to add custom Images to be used as background. It takes in an array of URLs.
|
|
361
|
+
* @returns
|
|
362
|
+
*/
|
|
363
|
+
setImages(SetImages: Array<String>): this;
|
|
364
|
+
/**
|
|
365
|
+
*
|
|
366
|
+
* @param {number} EnforceBackgroundBlur
|
|
367
|
+
* This method will enforce background blur.
|
|
368
|
+
* This method takes number as input which decides the blur level of the background.
|
|
369
|
+
* Default value is 0.
|
|
370
|
+
* @returns
|
|
371
|
+
*/
|
|
372
|
+
enforceBackgroundBlur(EnforceBackgroundBlur: number): this;
|
|
373
|
+
/**
|
|
374
|
+
*
|
|
375
|
+
* @param {string} EnforceBackgroundImage
|
|
376
|
+
* This method will enforce background image.
|
|
377
|
+
* If an URL of the image is sent then that image will be set as background.
|
|
378
|
+
* By default no image is set.
|
|
379
|
+
* @returns
|
|
380
|
+
*/
|
|
381
|
+
enforceBackgroundImage(EnforceBackgroundImage: string): this;
|
|
382
|
+
/**
|
|
383
|
+
* This method will return an object of the VirtualBackground class.
|
|
384
|
+
* @returns {VirtualBackground}
|
|
385
|
+
*/
|
|
386
|
+
build(): VirtualBackground;
|
|
387
|
+
}
|
|
388
|
+
export declare class MainVideoContainerSetting {
|
|
389
|
+
private videoFit;
|
|
390
|
+
private zoomButton;
|
|
391
|
+
private nameLabel;
|
|
392
|
+
private network;
|
|
393
|
+
/**
|
|
394
|
+
*
|
|
395
|
+
* @param {string} mainVideoAspectRatio
|
|
396
|
+
* This method is used to set the aspect ratio of main video.
|
|
397
|
+
* The default value is `contain`
|
|
398
|
+
* @returns
|
|
399
|
+
*/
|
|
400
|
+
setMainVideoAspectRatio(mainVideoAspectRatio: string): void;
|
|
401
|
+
/**
|
|
402
|
+
*
|
|
403
|
+
* @param {string} position
|
|
404
|
+
* @param {boolean} visibility
|
|
405
|
+
* This method is used to set the position & visibility parameter of the full screen button.
|
|
406
|
+
* By default the full screen button is visible in the `bottom-right` position.
|
|
407
|
+
* @returns
|
|
408
|
+
*/
|
|
409
|
+
setFullScreenButtonParams(position: string, visibility: boolean): void;
|
|
410
|
+
/**
|
|
411
|
+
*
|
|
412
|
+
* @param {string} position
|
|
413
|
+
* @param {boolean} visibility
|
|
414
|
+
* @param {string} backgroundColor
|
|
415
|
+
* This method is used to set the position, visibility & background color of the name label.
|
|
416
|
+
* By default the name label is visible in the `bottom-left` position with a background-color `rgba(27, 27, 27, 0.4)`
|
|
417
|
+
* @returns
|
|
418
|
+
*/
|
|
419
|
+
setNameLabelParams(position: string, visibility: boolean, backgroundColor: string): void;
|
|
420
|
+
/**
|
|
421
|
+
*
|
|
422
|
+
* @param {string} position
|
|
423
|
+
* @param {boolean} visibility
|
|
424
|
+
* This method is used to set the position, visibility of the network label.
|
|
425
|
+
* By default the network label is visible in the `bottom-right` position.
|
|
426
|
+
* @returns
|
|
427
|
+
*/
|
|
428
|
+
setNetworkLabelParams(position: string, visibility: boolean): void;
|
|
429
|
+
}
|