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.
37 lines (36 loc) • 1.62 kB
TypeScript
import type { LaunchMenuModalOptions } from 'mediasfu-shared';
import * as i0 from "@angular/core";
export type { LaunchMenuModalOptions, LaunchMenuModalType } from 'mediasfu-shared';
/**
* Toggles the visibility of the menu modal.
*
* This method updates the visibility state of the menu modal by calling the provided
* function with the negated current visibility state. If the modal is currently visible,
* it will be hidden, and vice versa.
*
* @param {LaunchMenuModalOptions} options - The options for launching the menu modal.
* @param {Function} options.updateIsMenuModalVisible - Function to update the visibility state of the menu modal.
* @param {boolean} options.isMenuModalVisible - Current visibility state of the menu modal.
*
* @example
* ```typescript
* const launchMenuModalService = new LaunchMenuModal();
* launchMenuModalService.launchMenuModal({
* updateIsMenuModalVisible: (isVisible) => {
* console.log('Menu modal is now:', isVisible ? 'Visible' : 'Hidden');
* },
* isMenuModalVisible: false, // Initially not visible
* });
* ```
*/
export declare class LaunchMenuModal {
/**
* Toggles the visibility of the menu modal.
*
* @param updateIsMenuModalVisible - Function to update the visibility state of the menu modal.
* @param isMenuModalVisible - Current visibility state of the menu modal.
*/
launchMenuModal({ updateIsMenuModalVisible, isMenuModalVisible }: LaunchMenuModalOptions): void;
static ɵfac: i0.ɵɵFactoryDeclaration<LaunchMenuModal, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<LaunchMenuModal>;
}