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.

39 lines (38 loc) 1.57 kB
import type { LaunchCoHostOptions } from 'mediasfu-shared'; import * as i0 from "@angular/core"; export type { LaunchCoHostOptions, LaunchCoHostType } from 'mediasfu-shared'; /** * Toggles the visibility of the co-host modal. * * This method is used to show or hide the co-host modal based on the current visibility state. * * @param {LaunchCoHostOptions} options - The options object containing necessary variables and functions. * @param {Function} options.updateIsCoHostModalVisible - Function to update the visibility state of the co-host modal. * @param {boolean} options.isCoHostModalVisible - Current visibility state of the co-host modal. * * @returns {void} * * @example * ```typescript * const options: LaunchCoHostOptions = { * updateIsCoHostModalVisible: (isVisible) => { * console.log('Co-Host Modal is now:', isVisible ? 'Visible' : 'Hidden'); * }, * isCoHostModalVisible: false, * }; * * const launchCoHostService = new launchCoHost(); * launchCoHostService.launchCoHost(options); * ``` */ export declare class launchCoHost { /** * Toggles the visibility of the co-host modal. * * @param updateIsCoHostModalVisible - Function to update the visibility state of the co-host modal. * @param isCoHostModalVisible - Current visibility state of the co-host modal. */ launchCoHost({ updateIsCoHostModalVisible, isCoHostModalVisible }: LaunchCoHostOptions): void; static ɵfac: i0.ɵɵFactoryDeclaration<launchCoHost, never>; static ɵprov: i0.ɵɵInjectableDeclaration<launchCoHost>; }