Class LaunchBackground

Toggles the visibility of the background modal.

This method updates the visibility state of the background modal by calling the provided update function with the negation of the current visibility state.

The options object containing necessary variables and functions.

Function to update the visibility state of the background modal.

Current visibility state of the background modal.

const options = {
updateIsBackgroundModalVisible: (isVisible) => {
console.log(`Background modal is now ${isVisible ? 'visible' : 'hidden'}.`);
},
isBackgroundModalVisible: false,
};

const launchBackgroundService = new LaunchBackground();
launchBackgroundService.launchBackground(options);

Constructors

Methods

Constructors

Methods