Class LaunchMessages

Toggles the visibility state of the messages modal.

This method updates the visibility state of the messages modal by calling the provided function with the negated current visibility state. If the modal is currently visible, it will be closed; if it's hidden, it will be opened.

The options for launching the messages modal.

Function to update the visibility state of the messages modal.

Current visibility state of the messages modal.

const launchMessagesService = new LaunchMessages();
launchMessagesService.launchMessages({
updateIsMessagesModalVisible: (visible) => {
console.log('Messages modal is now:', visible ? 'Visible' : 'Hidden');
},
isMessagesModalVisible: false, // Initially not visible
});

Constructors

Methods

Constructors

Methods