mediasfu-reactnative
Version:
MediaSFU Prebuilt React Native SDK
24 lines (23 loc) • 996 B
TypeScript
export interface MeetingStillThereOptions {
updateIsConfirmHereModalVisible: (isVisible: boolean) => void;
}
export type MeetingStillThereType = (options: MeetingStillThereOptions) => Promise<void>;
/**
* Handles the "still there?" meeting check by updating the visibility of the confirmation modal.
*
* @param {MeetingStillThereOptions} options - The options for the meeting still-there check.
* @param {Function} options.updateIsConfirmHereModalVisible - Function to update the visibility of the "still there?" modal.
* @returns {Promise<void>} A promise that resolves when the modal visibility is updated.
*
* @example
* ```typescript
* const options = {
* updateIsConfirmHereModalVisible: (isVisible) => console.log(`Modal visibility: ${isVisible}`),
* };
*
* await meetingStillThere(options);
* // Output:
* // "Modal visibility: true"
* ```
*/
export declare const meetingStillThere: ({ updateIsConfirmHereModalVisible, }: MeetingStillThereOptions) => Promise<void>;