From 81b74bb31a807e8b839f2e97347716df69fbbbdf Mon Sep 17 00:00:00 2001 From: Yogesh Singh Date: Wed, 24 Jul 2024 12:59:20 +0530 Subject: [PATCH] added example --- .../src/classes/HMSUpdateListenerActions.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/react-native-hms/src/classes/HMSUpdateListenerActions.ts b/packages/react-native-hms/src/classes/HMSUpdateListenerActions.ts index a329adec7..352c7b1d1 100644 --- a/packages/react-native-hms/src/classes/HMSUpdateListenerActions.ts +++ b/packages/react-native-hms/src/classes/HMSUpdateListenerActions.ts @@ -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.