Skip to main content

Utility Library

Provides utility hooks and functions to perform app builder specific tasks easily.


useIsVideoEnabled(): isVideoEnabled

Returns a function that checks the video state for a given uid and returns true/false


Returns:

isVideoEnabled(uid: UidType): boolean


useIsAudioEnabled(): isAudioEnabled

Returns a function that checks the audio state for a given uid and returns true/false


Returns:

isAudioEnabled(uid: UidType): boolean


useLocalUid(): UidType

Returns the local user's uid.


getCustomRoute(routeName:string): getCustomRoute

Returns the custom route path


useIsHost(): isHost

Returns a function that checks whether the given uid is a host and returns true/false


Returns:

isHost(uid: UidType ): boolean



useFullScreen()

Returns a object that contains requestFullScreen and exitFullScreen function

Note: Its only supported on web platform. click here for more details


Returns:

requestFullScreen: (uid: UidType) => Promise

exitFullScreen: () => void


useIsAttendee(): isAttendee

Returns a function that checks whether the given uid is an attendee and returns true/false


Returns:

isAttendee(uid: UidType): boolean


useIsPSTN(): isPSTN

Returns a function that checks whether the given uid is a PSTN user and returns true/false


Returns:

isPSTN(uid: UidType): boolean


useHistory: useHistoryHook

Returns the internal "react-router" instance's history object.


useParams: useParamsHook

Returns the navigation parameters passed via the url/path.



useHideShareTitle(): HideShareTitle

Returns a function that takes boolean and hide the share tile Note: share tile will be shown to the user only when one user in the call


Returns:

HideShareTile(hide: boolean ): void


isWeb(): boolean

Checks whether the application is running as a web app and returns true/false.


isIOS(): boolean

Checks whether the application is running as an iOS app and returns true/false.


isAndroid(): boolean

Checks whether the application is running as an android app and returns true/false.


isDesktop(): boolean

Checks whether the application is running as an electron desktop app and returns true/false.


isMobileOrTablet(): boolean

Checks whether the application is running as a web application on a mobile or tablet device and returns true/false.