mediasfu-reactjs
Version:
MediaSFU Prebuilt ReactJS SDK - Compatible with React 18 & 19, TypeScript & JavaScript
24 lines • 1.05 kB
TypeScript
export interface LaunchBackgroundOptions {
updateIsBackgroundModalVisible: (isVisible: boolean) => void;
isBackgroundModalVisible: boolean;
}
export type LaunchBackgroundType = (options: LaunchBackgroundOptions) => void;
/**
* Toggles the visibility of the background modal.
* @function
* @param {Object} options - The options object containing necessary variables and functions.
* @param {Function} options.updateIsBackgroundModalVisible - Function to update the visibility state of the background modal.
* @param {boolean} options.isBackgroundModalVisible - Current visibility state of the background modal.
*
* @example
* ```typescript
* const backgroundOptions: LaunchBackgroundOptions = {
* updateIsBackgroundModalVisible: setBackgroundModalVisible,
* isBackgroundModalVisible: false,
* };
*
* launchBackground(backgroundOptions);
* ```
*/
export declare const launchBackground: ({ updateIsBackgroundModalVisible, isBackgroundModalVisible }: LaunchBackgroundOptions) => void;
//# sourceMappingURL=launchBackground.d.ts.map