Skip to content

Commit

Permalink
v3.0.11
Browse files Browse the repository at this point in the history
  • Loading branch information
mayur-bhandari committed Jan 24, 2023
1 parent f649ab2 commit 53c9d72
Show file tree
Hide file tree
Showing 4 changed files with 129 additions and 4 deletions.
125 changes: 125 additions & 0 deletions CometChat.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3718,6 +3718,10 @@ export class AppSettings {
autoJoinGroup: boolean;
/** @private */
establishSocketConnection: boolean;
/** @private */
adminHost: string;
/** @private */
clientHost: string;
/**
* @private
* @param {AppSettingsBuilder}
Expand Down Expand Up @@ -3748,6 +3752,17 @@ export class AppSettings {
* @returns {boolean}
*/
shouldAutoEstablishSocketConnection(): boolean;
/**
* This method returns the admin host to which the SDK should connect.
* @returns {boolean}
*/
getAdminHost(): string;

/**
* This method returns the client host to which the SDK should connect.
* @returns {boolean}
*/
getClientHost(): string;
}
export class AppSettingsBuilder {
/** @private */
Expand All @@ -3760,6 +3775,10 @@ export class AppSettingsBuilder {
autoJoinGroup: boolean;
/** @private */
establishSocketConnection: boolean;
/** @private */
adminHost: string;
/** @private */
clientHost: string;
/**
* A method to subscribe presence for all users.
* @returns
Expand Down Expand Up @@ -3794,6 +3813,18 @@ export class AppSettingsBuilder {
* @returns
*/
autoEstablishSocketConnection(establishSocketConnection?: boolean): this;
/**
* @param {string} adminHost
* This method is used to override the admin host which the SDK uses to make an API call.
* @returns
*/
overrideAdminHost(adminHost: string): this;
/**
* @param {string} clientHost
* This method is used to override the client host which the SDK uses to make an API call.
* @returns
*/
overrideClientHost(clientHost: string): this;
/**
* This method will return an object of the AppSettings class.
* @returns {AppSettings}
Expand Down Expand Up @@ -3963,6 +3994,13 @@ export class Attachment {
}

export class CallSettings {
static POSITION_TOP_LEFT: string;
static POSITION_TOP_RIGHT: string;
static POSITION_BOTTOM_LEFT: string;
static POSITION_BOTTOM_RIGHT: string;
static ASPECT_RATIO_DEFAULT: string;
static ASPECT_RATIO_CONTAIN: string;
static ASPECT_RATIO_COVER: string;
constructor(builder?: CallSettingsBuilder);
getSessionId(): string;
isAudioOnlyCall(): boolean;
Expand All @@ -3986,6 +4024,9 @@ export class CallSettings {
getAvatarMode(): string;
isRecordingButtonEnabled(): boolean;
shouldStartRecordingOnCallStart(): boolean;
getMainVideoContainerSetting(): MainVideoContainerSetting;
isVideoTileClickEnabled(): boolean;
isVideoTileDragEnabled(): boolean;
}
export class CallSettingsBuilder {
/** @private */ sessionID: string;
Expand All @@ -4010,6 +4051,9 @@ export class CallSettingsBuilder {
/** @private */ AvatarMode: string;
/** @private */ ShowRecordingButton: boolean;
/** @private */ StartRecordingOnCallStart: boolean;
/** @private */ MainVideoContainerSetting: MainVideoContainerSetting;
/** @private */ EnableVideoTileClick: boolean;
/** @private */ enableDraggableVideoTile: boolean;
/**
*
* @param {string} sessionID
Expand Down Expand Up @@ -4199,13 +4243,94 @@ export class CallSettingsBuilder {
* @returns
*/
startRecordingOnCallStart(startRecordingOnCallStart: boolean): this;
/**
*
* @param {MainVideoContainerSetting} mainVideoContainerSetting
* This method can be used to customize the main video container.
* @returns
*/
setMainVideoContainerSetting(mainVideoContainerSetting: MainVideoContainerSetting): this;
/**
*
* @param {boolean} enableVideoTileClick
* This method can be used to enable/disable video tile click functionality in Spotlight mode.
* By default the video tile is clickable.
* @returns
*/
enableVideoTileClick(enableVideoTileClick: boolean): this;
/**
*
* @param {boolean} enableVideoTileDrag
* This method can be used to enable/disable video tile drag functionality in Spotlight mode.
* By default the video tile is draggable.
* @returns
*/
enableVideoTileDrag(enableVideoTileDrag: boolean): this;
/**
* This method will return an object of the CallSettings class.
* @returns {CallSettings}
*/
build(): CallSettings;
}

export class MainVideoContainerSetting{
/** @private */ videoFit: string;
/** @private */ zoomButton: Object;
/** @private */ fullScreenButton: Object;
/** @private */ userListButton: Object;
/** @private */ nameLabel: Object;

/**
*
* @param {string} mainVideoAspectRatio
* This method is used to set the aspect ratio of main video.
* The default value is `contain`.
* @returns
*/
setMainVideoAspectRatio(mainVideoAspectRatio: string);

/**
*
* @param {string} position
* @param {boolean} visibility
* This method is used to set the position & visibility parameter of the full screen button.
* By default the full screen button is visible in the `bottom-right` position.
* @returns
*/
setFullScreenButtonParams(position: string, visibility: boolean);

/**
*
* @param {string} position
* @param {boolean} visibility
* @param {string} backgroundColor
* This method is used to set the position, visibility & background color of the name label.
* By default the name label is visible in the `bottom-right` position with a background-color `#333333`.
* @returns
*/
setNameLabelParams(position: string, visibility: boolean, backgroundColor: string);

/**
*
* @param {string} position
* @param {boolean} visibility
* This method is used to set the position & visibility parameter of the zoom button.
* By default the zoom button is visible in the `bottom-right` position.
* @returns
*/
setZoomButtonParams(position: string, visibility: boolean);

/**
*
* @param {string} position
* @param {boolean} visibility
* This method is used to set the position & visibility parameter of the user list button.
* By default the user list button is visible in the `bottom-right` position.
* @returns
*/
setUserListButtonParams(position: string, visibility: boolean);
}

type MyState = {
shouldLoad: boolean;
};
Expand Down
2 changes: 1 addition & 1 deletion CometChat.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ This guide demonstrates how to add chat to a React Native App using CometChat Pr
[Push Notification](https://prodocs.cometchat.com/docs/extensions-enhanced-push-notification) | [Email Notification](https://prodocs.cometchat.com/docs/extensions-email-notification) | [SMS Notification](https://prodocs.cometchat.com/docs/extensions-sms-notification) | [Thumbnail Generation](https://prodocs.cometchat.com/docs/extensions-thumbnail-generation) | [Link Preview](https://prodocs.cometchat.com/docs/extensions-link-preview) | [Rich Media Preview](https://prodocs.cometchat.com/docs/extensions-rich-media-preview) | [Voice Transcription](https://prodocs.cometchat.com/docs/extensions-voice-transcription) | [Smart Reply](https://prodocs.cometchat.com/docs/extensions-smart-reply) | [Message Translation](https://prodocs.cometchat.com/docs/extensions-message-translation) | [Emojis](https://prodocs.cometchat.com/docs/extensions-emojis) | [Polls](https://prodocs.cometchat.com/docs/extensions-polls) | [Reactions](https://prodocs.cometchat.com/docs/extensions-reactions) | [Stickers](https://prodocs.cometchat.com/docs/extensions-stickers) | [Video Broadcasting](https://prodocs.cometchat.com/docs/extensions-broadcast) | [Collaborative Documents](https://prodocs.cometchat.com/docs/extensions-collaborative-document) | [Collaborative Whiteboards](https://prodocs.cometchat.com/docs/extensions-collaborative-whiteboard) | [Data Masking Filter](https://prodocs.cometchat.com/docs/extensions-data-masking-filter) | [Profanity Filter](https://prodocs.cometchat.com/docs/extensions-profanity-filter) | [Image Moderation](https://prodocs.cometchat.com/docs/extensions-image-moderation)| [Sentiment Analysis](https://prodocs.cometchat.com/docs/extensions-sentiment-analysis) | [In-flight Message Moderation](https://prodocs.cometchat.com/docs/extensions-in-flight-message-moderation) | [Virus & Malware Scanner](https://prodocs.cometchat.com/docs/extensions-virus-malware-scanner) | [XSS Filter](https://prodocs.cometchat.com/docs/extensions-xss-filter)

[![Platform](https://img.shields.io/badge/Platform-Javascript-brightgreen)](#)
<a href=" "> <img src="https://img.shields.io/badge/Version-3.0.10-important" /></a>
<a href=" "> <img src="https://img.shields.io/badge/Version-3.0.11-important" /></a>
![GitHub repo size](https://img.shields.io/github/repo-size/cometchat-pro/react-native-chat-sdk)
![GitHub contributors](https://img.shields.io/github/contributors/cometchat-pro/react-native-chat-sdk)
![GitHub stars](https://img.shields.io/github/stars/cometchat-pro/react-native-chat-sdk?style=social)
Expand Down Expand Up @@ -79,7 +79,7 @@ To setup React Native SDK, you need to first register on CometChat Dashboard. [
1. Run the following command to install the CometChat Pro React Native SDK<br/>

```javascript
npm install @cometchat-pro/react-native-chat@3.0.10 --save
npm install @cometchat-pro/react-native-chat@3.0.11 --save
```

You can refer to the below link for instructions on how to do so:<br/>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cometchat-pro/react-native-chat",
"version": "3.0.10",
"version": "3.0.11",
"description": "A complete chat solution.",
"main": "CometChat.js",
"scripts": {
Expand Down

0 comments on commit 53c9d72

Please sign in to comment.