MediaSFU Angular
    Preparing search index...

    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
    });
    Index

    Constructors

    Methods

    Constructors

    Methods

    • Toggles the visibility state of the messages modal. If the modal is currently visible, it will be closed. If it's hidden, it will be opened.

      Parameters

      • updateIsMessagesModalVisible: LaunchMessagesOptions

        Function to update the visibility state of the messages modal.

      Returns void