UNPKG

mediasfu-angular

Version:

mediasfu-angular - Angular 17/18/19 WebRTC SDK for video conferencing, webinars, broadcasts, live streaming, chat, recording, whiteboard, and AI agents. Prebuilt rooms and fully custom UIs.

33 lines (32 loc) 1.49 kB
import type { LaunchWaitingOptions } from 'mediasfu-shared'; import * as i0 from "@angular/core"; export type { LaunchWaitingOptions, LaunchWaitingType } from 'mediasfu-shared'; /** * Service to toggle the visibility of a waiting modal. * * @param {LaunchWaitingOptions} options - The options to control the waiting modal visibility. * @param {Function} options.updateIsWaitingModalVisible - Function to update the visibility of the waiting modal. * @param {boolean} options.isWaitingModalVisible - Current visibility state of the waiting modal. * * @example * ```typescript * const launchWaitingService = new LaunchWaiting(); * launchWaitingService.launchWaiting({ * updateIsWaitingModalVisible: (isVisible) => console.log(`Modal is now ${isVisible ? 'visible' : 'hidden'}`), * isWaitingModalVisible: false, * }); * ``` * * This example toggles the modal's visibility state, making it visible if it was hidden and vice versa. */ export declare class LaunchWaiting { /** * Toggles the visibility of the waiting modal. * * @param updateIsWaitingModalVisible - Function to update the visibility state of the waiting modal. * @param isWaitingModalVisible - Current visibility state of the waiting modal. */ launchWaiting({ updateIsWaitingModalVisible, isWaitingModalVisible, }: LaunchWaitingOptions): void; static ɵfac: i0.ɵɵFactoryDeclaration<LaunchWaiting, never>; static ɵprov: i0.ɵɵInjectableDeclaration<LaunchWaiting>; }