Skip to content

Commit

Permalink
added example
Browse files Browse the repository at this point in the history
  • Loading branch information
ygit committed Jul 24, 2024
1 parent 99f41f7 commit 81b74bb
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@
*
* @enum {string}
*
* @example
* ```typescript
* import { HMSUpdateListenerActions } from 'react-native-hms';
* hmsinstance.on(HMSUpdateListenerActions.ON_JOIN, ({ room: HMSRoom }}) => {
* console.log('Joined room', data);
* // Handle the event
* });
* ```
*
* @property {string} ON_PREVIEW - Emitted when the local preview is available.
* @property {string} ON_JOIN - Emitted when the local user joins the room.
* @property {string} ON_ROOM_UPDATE - Emitted when there is an update related to the room.
Expand Down

0 comments on commit 81b74bb

Please sign in to comment.