-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated inline code comments (#1408)
# Description - updated inline code comments ### Pre-launch Checklist - [x] The [Documentation] is updated accordingly, or this PR doesn't require it. - [x] I have updated the `ExampleAppChangelog.txt` file with relevant changes. - [x] I updated/added relevant documentation (doc comments with `///`). - [x] I listed at least one issue that this PR fixes in the description above. - [x] I added new tests to check the change I am making, or this PR is test-exempt. - [x] All existing and new tests are passing. <!-- Links --> [Documentation]: https://www.100ms.live/docs
- Loading branch information
Showing
15 changed files
with
928 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,25 @@ | ||
/** | ||
* Enum for HMSAudioDevice types. | ||
* | ||
* This enum represents the different types of audio devices that can be used | ||
* in the context of the HMS SDK. It provides a way to specify the preferred | ||
* audio output device for audio playback. | ||
* | ||
* @enum {string} | ||
*/ | ||
export enum HMSAudioDevice { | ||
/** Use the speakerphone for audio output. */ | ||
SPEAKER_PHONE = 'SPEAKER_PHONE', | ||
|
||
/** Use a wired headset for audio output, if connected. */ | ||
WIRED_HEADSET = 'WIRED_HEADSET', | ||
|
||
/** Use the earpiece for audio output. */ | ||
EARPIECE = 'EARPIECE', | ||
|
||
/** Use a Bluetooth device for audio output, if connected. */ | ||
BLUETOOTH = 'BLUETOOTH', | ||
|
||
/** Automatically select the best audio output device based on the current state. */ | ||
AUTOMATIC = 'AUTOMATIC', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,15 @@ | ||
/** | ||
* Enum for camera facing directions in a 100ms (HMS) application. | ||
* | ||
* This enumeration defines the possible camera facing options for video tracks in a 100ms (HMS) application, allowing developers to specify whether the front or back camera should be used during a video session. | ||
* This can be particularly useful for applications that need to switch between cameras or provide users with the option to choose their preferred camera. | ||
* | ||
* @enum {string} | ||
* @see https://www.100ms.live/docs/react-native/v2/how-to-guides/set-up-video-conferencing/mute#switch-camera | ||
*/ | ||
export enum HMSCameraFacing { | ||
/** Represents the front camera on a device. */ | ||
FRONT = 'FRONT', | ||
/** Represents the back camera on a device. */ | ||
BACK = 'BACK', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
packages/react-native-hms/src/classes/HMSLogAlarmManager.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
packages/react-native-hms/src/classes/HMSPIPListenerActions.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,22 @@ | ||
/** | ||
* Enum for HMS Picture-in-Picture (PIP) Listener Actions. | ||
* | ||
* This enum defines the types of actions/events related to the Picture-in-Picture (PIP) mode that can be listened to | ||
* within the HMS SDK. These actions allow the application to respond to changes in PIP mode or when the room is left | ||
* while in PIP mode. | ||
* | ||
* @enum {string} | ||
*/ | ||
export enum HMSPIPListenerActions { | ||
/** | ||
* Action triggered when the Picture-in-Picture mode changes. | ||
* This can be used to handle UI changes or other logic when entering or exiting PIP mode. | ||
*/ | ||
ON_PIP_MODE_CHANGED = 'ON_PIP_MODE_CHANGED', | ||
|
||
/** | ||
* Action triggered when the room is left while in Picture-in-Picture mode. Android only. | ||
* This can be used to clean up resources or update the UI accordingly. | ||
*/ | ||
ON_PIP_ROOM_LEAVE = 'ON_PIP_ROOM_LEAVE', | ||
} |
Oops, something went wrong.