@cometchat/chat-sdk-javascript 4.0.0 → 4.0.2
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/index.d.ts → CometChat.d.ts} +444 -32
- package/CometChat.js +1 -0
- package/LICENSE.md +3 -0
- package/{readme.md → README.md} +8 -8
- package/package.json +31 -42
- package/dist/CometChat.js +0 -1
- package/dist/package.json +0 -36
- package/dist/type/index.d.ts +0 -10
- package/dist/type/lib/BannedMembersRequest.d.ts +0 -60
- package/dist/type/lib/BlockedUsersRequest.d.ts +0 -67
- package/dist/type/lib/CallSettings.d.ts +0 -429
- package/dist/type/lib/CometChat.d.ts +0 -1975
- package/dist/type/lib/CometChatErrorConstants.d.ts +0 -124
- package/dist/type/lib/CometChatHelper.d.ts +0 -26
- package/dist/type/lib/Constants.d.ts +0 -973
- package/dist/type/lib/ConversationRequest.d.ts +0 -89
- package/dist/type/lib/GroupMembersRequest.d.ts +0 -61
- package/dist/type/lib/GroupsRequest.d.ts +0 -78
- package/dist/type/lib/Helper.d.ts +0 -47
- package/dist/type/lib/ListenerHandlers.d.ts +0 -101
- package/dist/type/lib/MessagesRequest.d.ts +0 -188
- package/dist/type/lib/UsersRequest.d.ts +0 -142
- package/dist/type/lib/WebSockets/WSConnectionHelper.d.ts +0 -41
- package/dist/type/lib/WebSockets/WSConstants.d.ts +0 -71
- package/dist/type/lib/WebSockets/WSHelper.d.ts +0 -3
- package/dist/type/lib/controllers/CallController.d.ts +0 -151
- package/dist/type/lib/controllers/ConversationController.d.ts +0 -14
- package/dist/type/lib/controllers/GroupMemberController.d.ts +0 -10
- package/dist/type/lib/controllers/GroupsController.d.ts +0 -9
- package/dist/type/lib/controllers/MessageController.d.ts +0 -18
- package/dist/type/lib/controllers/PresenceController.d.ts +0 -0
- package/dist/type/lib/controllers/TypingNotificationController.d.ts +0 -14
- package/dist/type/lib/controllers/UserAuthController.d.ts +0 -10
- package/dist/type/lib/controllers/UsersController.d.ts +0 -9
- package/dist/type/lib/localStore/KeyStore.d.ts +0 -45
- package/dist/type/lib/localStore/MessageListenerEventMaping.d.ts +0 -56
- package/dist/type/lib/localStore/MessagesStore.d.ts +0 -72
- package/dist/type/lib/localStore/UserStore.d.ts +0 -72
- package/dist/type/lib/localStore/store.d.ts +0 -61
- package/dist/type/lib/models/Action.d.ts +0 -159
- package/dist/type/lib/models/AppSettings.d.ts +0 -135
- package/dist/type/lib/models/BaseMessage.d.ts +0 -259
- package/dist/type/lib/models/CCExtension.d.ts +0 -15
- package/dist/type/lib/models/Call.d.ts +0 -159
- package/dist/type/lib/models/CometChatAuthEvent.d.ts +0 -25
- package/dist/type/lib/models/CometChatEvent.d.ts +0 -25
- package/dist/type/lib/models/CometChatMessageEvent.d.ts +0 -9
- package/dist/type/lib/models/CometChatPingEvent.d.ts +0 -6
- package/dist/type/lib/models/CometChatPresenceEvent.d.ts +0 -15
- package/dist/type/lib/models/CometChatReceiptEvent.d.ts +0 -14
- package/dist/type/lib/models/CometChatTransientEvent.d.ts +0 -11
- package/dist/type/lib/models/CometChatTypingEvent.d.ts +0 -14
- package/dist/type/lib/models/ConversationModel.d.ts +0 -73
- package/dist/type/lib/models/CustomError.d.ts +0 -13
- package/dist/type/lib/models/CustomMessage.d.ts +0 -71
- package/dist/type/lib/models/ErrorModel.d.ts +0 -12
- package/dist/type/lib/models/Group.d.ts +0 -190
- package/dist/type/lib/models/GroupMember.d.ts +0 -43
- package/dist/type/lib/models/Listner.d.ts +0 -258
- package/dist/type/lib/models/MediaDevice.d.ts +0 -36
- package/dist/type/lib/models/MediaMessage.d.ts +0 -115
- package/dist/type/lib/models/MessageReceipt.d.ts +0 -99
- package/dist/type/lib/models/RTCUser.d.ts +0 -18
- package/dist/type/lib/models/TextMessage.d.ts +0 -84
- package/dist/type/lib/models/TransientMessage.d.ts +0 -48
- package/dist/type/lib/models/TypingNotification.d.ts +0 -52
- package/dist/type/lib/models/UserModel.d.ts +0 -177
- package/dist/type/lib/models/UserPresence.d.ts +0 -0
- package/dist/type/lib/models/attachment.d.ts +0 -74
- package/dist/type/lib/rest-api/EndPointUtils.d.ts +0 -9
- package/dist/type/lib/rest-api/EndpointFactory.d.ts +0 -28
- package/dist/type/lib/rest-api/HttpHelper.d.ts +0 -10
package/dist/package.json
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@cometchat-pro/chat",
|
|
3
|
-
"version": "3.0.12",
|
|
4
|
-
"description": "A complete chat solution.",
|
|
5
|
-
"main": "CometChat.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
|
-
},
|
|
9
|
-
"keywords": [
|
|
10
|
-
"CometChat",
|
|
11
|
-
"chat",
|
|
12
|
-
"messaging",
|
|
13
|
-
"chat",
|
|
14
|
-
"sdk",
|
|
15
|
-
"pro",
|
|
16
|
-
"message",
|
|
17
|
-
"sdk",
|
|
18
|
-
"messaging",
|
|
19
|
-
"sdk",
|
|
20
|
-
"audio",
|
|
21
|
-
"chat",
|
|
22
|
-
"video",
|
|
23
|
-
"chat",
|
|
24
|
-
"webRTC"
|
|
25
|
-
],
|
|
26
|
-
"author": "CometChat",
|
|
27
|
-
"license": "SEE LICENSE IN LICENSE.md",
|
|
28
|
-
"repository": {
|
|
29
|
-
"type": "git",
|
|
30
|
-
"url": "git+https://github.com/cometchat-pro/javascript-chat-sdk.git"
|
|
31
|
-
},
|
|
32
|
-
"bugs": {
|
|
33
|
-
"url": "https://github.com/cometchat-pro/javascript-chat-sdk/issues"
|
|
34
|
-
},
|
|
35
|
-
"homepage": "https://github.com/cometchat-pro/javascript-chat-sdk#readme"
|
|
36
|
-
}
|
package/dist/type/index.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { CometChat as cometchat } from "./lib/CometChat";
|
|
2
|
-
/**
|
|
3
|
-
*Initialises and returns the CometChat singleton object.
|
|
4
|
-
*
|
|
5
|
-
* @export
|
|
6
|
-
* @param {string} appId appId generted at the time of perchase. unique for each client.
|
|
7
|
-
* @returns {CometChat}
|
|
8
|
-
*/
|
|
9
|
-
export declare function init(appId: string): cometchat;
|
|
10
|
-
export declare let CometChat: typeof cometchat;
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { GroupMember } from './models/GroupMember';
|
|
2
|
-
export declare class BannedMembersRequest {
|
|
3
|
-
private static MAX_LIMIT;
|
|
4
|
-
private static DEFAULT_LIMIT;
|
|
5
|
-
private limit;
|
|
6
|
-
private guid;
|
|
7
|
-
private cursor;
|
|
8
|
-
private total;
|
|
9
|
-
private searchKeyword;
|
|
10
|
-
private next_page;
|
|
11
|
-
private last_page;
|
|
12
|
-
private current_page;
|
|
13
|
-
private total_pages;
|
|
14
|
-
private scopes?;
|
|
15
|
-
private pagination;
|
|
16
|
-
constructor(builder: BannedMembersRequestBuilder);
|
|
17
|
-
private validateBannedMembersBuilder;
|
|
18
|
-
/**
|
|
19
|
-
* Get list of next set of banned members based on the parameters specified in BannedMembersRequestBuilder class. The Developer need to call this method repeatedly using the same object of BannedMembersRequest class to get paginated list of banned members.
|
|
20
|
-
* @returns {Promise<GroupMember[] | []>}
|
|
21
|
-
*/
|
|
22
|
-
fetchNext(): Promise<GroupMember[] | []>;
|
|
23
|
-
/**
|
|
24
|
-
* @internal
|
|
25
|
-
*/
|
|
26
|
-
getNextData(): any;
|
|
27
|
-
}
|
|
28
|
-
export declare class BannedMembersRequestBuilder {
|
|
29
|
-
/** @private */ limit: number;
|
|
30
|
-
/** @private */ searchKeyword: string;
|
|
31
|
-
/** @private */ guid: string;
|
|
32
|
-
/** @private */ scopes?: Array<String>;
|
|
33
|
-
constructor(guid: string);
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @param {number} limit
|
|
37
|
-
* A method to set limit for the number of banned members returned in a single iteration. A maximum of 100 banned members can fetched in a single iteration.
|
|
38
|
-
* @returns
|
|
39
|
-
*/
|
|
40
|
-
setLimit(limit: number): this;
|
|
41
|
-
/**
|
|
42
|
-
*
|
|
43
|
-
* @param {string} searchKeyword
|
|
44
|
-
* A method to set the search string based on which the banned members are to be fetched.
|
|
45
|
-
* @returns
|
|
46
|
-
*/
|
|
47
|
-
setSearchKeyword(searchKeyword: string): this;
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @param {string[]} scopes
|
|
51
|
-
* A method to set the search banned members based on their scope.
|
|
52
|
-
* @returns
|
|
53
|
-
*/
|
|
54
|
-
setScopes(scopes: Array<String>): this;
|
|
55
|
-
/**
|
|
56
|
-
* This method will return an object of the BannedMembersRequest class.
|
|
57
|
-
* @returns {BannedMembersRequest}
|
|
58
|
-
*/
|
|
59
|
-
build(): BannedMembersRequest;
|
|
60
|
-
}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { User } from './models/UserModel';
|
|
2
|
-
export declare class BlockedUsersRequest {
|
|
3
|
-
private static MAX_LIMIT;
|
|
4
|
-
private static DEFAULT_LIMIT;
|
|
5
|
-
private limit;
|
|
6
|
-
private searchKeyword;
|
|
7
|
-
private next_page;
|
|
8
|
-
private current_page;
|
|
9
|
-
private total_pages;
|
|
10
|
-
private direction;
|
|
11
|
-
private fetchingInProgress;
|
|
12
|
-
static directions: {
|
|
13
|
-
BOTH: string;
|
|
14
|
-
HAS_BLOCKED_ME: string;
|
|
15
|
-
BLOCKED_BY_ME: string;
|
|
16
|
-
};
|
|
17
|
-
private pagination;
|
|
18
|
-
/**
|
|
19
|
-
* @private
|
|
20
|
-
* @param {BlockedUsersRequestBuilder} builder
|
|
21
|
-
*/
|
|
22
|
-
constructor(builder?: BlockedUsersRequestBuilder);
|
|
23
|
-
private validateBlockedUsersBuilder;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* Get list of next set of blocked users based on the parameters specified in BlockedUsersRequestBuilder class. The Developer need to call this method repeatedly using the same object of BlockedUsersRequest class to get paginated list of blocked users.
|
|
27
|
-
* @returns {Promise<User[] | []>}
|
|
28
|
-
*/
|
|
29
|
-
fetchNext(): Promise<User[] | []>;
|
|
30
|
-
/** @internal */
|
|
31
|
-
getNextData(): any;
|
|
32
|
-
}
|
|
33
|
-
export declare class BlockedUsersRequestBuilder {
|
|
34
|
-
/** @private */ limit: number;
|
|
35
|
-
/** @private */ searchKeyword: string;
|
|
36
|
-
/** @private */ direction: string;
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
* @param {number} limit
|
|
40
|
-
* A method to set limit for the number of blocked users returned in a single iteration. A maximum of 100 blocked users can fetched in a single iteration.
|
|
41
|
-
* @returns
|
|
42
|
-
*/
|
|
43
|
-
setLimit(limit: number): this;
|
|
44
|
-
/**
|
|
45
|
-
*
|
|
46
|
-
* @param {string} searchKeyword
|
|
47
|
-
* A method to set the search string based on which the blocked users are to be fetched.
|
|
48
|
-
* @returns
|
|
49
|
-
*/
|
|
50
|
-
setSearchKeyword(searchKeyword: string): this;
|
|
51
|
-
/**
|
|
52
|
-
*
|
|
53
|
-
* @param direction
|
|
54
|
-
* A method to either fetch only users the logged-in user has blocked or the users who have blocked the logged-in user or both.
|
|
55
|
-
* @returns
|
|
56
|
-
*/
|
|
57
|
-
setDirection(direction: string): this;
|
|
58
|
-
/** @internal */
|
|
59
|
-
blockedByMe(): this;
|
|
60
|
-
/** @internal */
|
|
61
|
-
hasBlockedMe(): this;
|
|
62
|
-
/**
|
|
63
|
-
* This method will return an object of the BlockedUsersRequest class.
|
|
64
|
-
* @returns {BlockedUsersRequest}
|
|
65
|
-
*/
|
|
66
|
-
build(): BlockedUsersRequest;
|
|
67
|
-
}
|
|
@@ -1,429 +0,0 @@
|
|
|
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
|
-
}
|