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.
40 lines (39 loc) • 1.92 kB
TypeScript
import type { LaunchParticipantsOptions } from 'mediasfu-shared';
import * as i0 from "@angular/core";
export type { LaunchParticipantsOptions, LaunchParticipantsType } from 'mediasfu-shared';
/**
* Toggles the visibility of the participants modal.
*
* This method checks the current visibility state of the participants modal
* and updates it accordingly. If the modal is currently visible, it will be hidden.
* If it is hidden, it will be displayed.
*
* @param {LaunchParticipantsOptions} options - The options for toggling the participants modal.
* @param {Function} options.updateIsParticipantsModalVisible - Function to update the visibility state of the participants modal.
* @param {boolean} options.isParticipantsModalVisible - Current visibility state of the participants modal.
*
* @returns {void}
*
* @example
* ```typescript
* const launchParticipantsService = new LaunchParticipants();
* launchParticipantsService.launchParticipants({
* updateIsParticipantsModalVisible: (isVisible) => {
* console.log(`Participants modal is now ${isVisible ? 'visible' : 'hidden'}`);
* },
* isParticipantsModalVisible: false,
* });
* ```
*/
export declare class LaunchParticipants {
/**
* Toggles the visibility of the participants modal.
* @function
* @param {Object} options - The options object containing necessary variables and functions.
* @param {Function} options.updateIsParticipantsModalVisible - Function to update the visibility state of the participants modal.
* @param {boolean} options.isParticipantsModalVisible - Current visibility state of the participants modal.
*/
launchParticipants({ updateIsParticipantsModalVisible, isParticipantsModalVisible, }: LaunchParticipantsOptions): void;
static ɵfac: i0.ɵɵFactoryDeclaration<LaunchParticipants, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<LaunchParticipants>;
}