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.

35 lines (34 loc) 1.7 kB
import type { LaunchConfirmExitOptions } from 'mediasfu-shared'; import * as i0 from "@angular/core"; export type { LaunchConfirmExitOptions, LaunchConfirmExitType } from 'mediasfu-shared'; /** * Toggles the visibility of the confirmation exit modal. * * This method updates the state of the confirmation exit modal by inverting its current visibility status. * * @param {LaunchConfirmExitOptions} options - The options for toggling the confirmation exit modal visibility. * @param {Function} options.updateIsConfirmExitModalVisible - Function to update the visibility state of the confirmation exit modal. * @param {boolean} options.isConfirmExitModalVisible - Current visibility state of the confirmation exit modal. * * @example * ```typescript * const launchConfirmExitService = new LaunchConfirmExit(); * launchConfirmExitService.launchConfirmExit({ * updateIsConfirmExitModalVisible: (isVisible) => { * console.log('Confirm exit modal is now:', isVisible ? 'Visible' : 'Hidden'); * }, * isConfirmExitModalVisible: false, // Initially not visible * }); * ``` */ export declare class LaunchConfirmExit { /** * Toggles the visibility of the confirmation exit modal. * * @param updateIsConfirmExitModalVisible - Function to update the visibility state of the confirmation exit modal. * @param isConfirmExitModalVisible - Current visibility state of the confirmation exit modal. */ launchConfirmExit({ updateIsConfirmExitModalVisible, isConfirmExitModalVisible, }: LaunchConfirmExitOptions): void; static ɵfac: i0.ɵɵFactoryDeclaration<LaunchConfirmExit, never>; static ɵprov: i0.ɵɵInjectableDeclaration<LaunchConfirmExit>; }