MediaSFU React Native
    Preparing search index...

    Interface CoHostModalOptions

    Options for configuring the CoHostModal component.

    CoHostModalOptions

    Modal Control:

    interface CoHostModalOptions {
        isCoHostModalVisible: boolean;
        currentCohost?: string;
        participants: Participant[];
        coHostResponsibility: CoHostResponsibility[];
        position?: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
        backgroundColor?: string;
        roomName: string;
        showAlert?: ShowAlert;
        updateCoHostResponsibility: (
            coHostResponsibility: CoHostResponsibility[],
        ) => void;
        updateCoHost: (coHost: string) => void;
        updateIsCoHostModalVisible: (isCoHostModalVisible: boolean) => void;
        socket: Socket;
        onCoHostClose: () => void;
        onModifyEventSettings?: (settings: ModifyCoHostSettingsOptions) => void;
        style?: StyleProp<ViewStyle>;
        renderContent?: (
            options: {
                defaultContent: Element;
                dimensions: { width: number; height: number };
            },
        ) => Element;
        renderContainer?: (
            options: {
                defaultContainer: Element;
                dimensions: { width: number; height: number };
            },
        ) => Element;
    }
    Index

    Properties

    isCoHostModalVisible: boolean

    Determines modal visibility.

    currentCohost?: string

    Current co-host label.

    participants: Participant[]

    List of available participants.

    coHostResponsibility: CoHostResponsibility[]

    Responsibility matrix for co-host role.

    position?: "topLeft" | "topRight" | "bottomLeft" | "bottomRight"

    Anchor location.

    backgroundColor?: string

    Background color.

    roomName: string

    Current room identifier.

    showAlert?: ShowAlert

    Optional alert helper.

    updateCoHostResponsibility: (
        coHostResponsibility: CoHostResponsibility[],
    ) => void

    Persists responsibility changes.

    updateCoHost: (coHost: string) => void

    Updates the active co-host value.

    Session Context:

    updateIsCoHostModalVisible: (isCoHostModalVisible: boolean) => void

    External setter for visibility.

    Co-host State:

    socket: Socket

    Socket instance for backend updates.

    onCoHostClose: () => void

    Handler invoked when closing the modal.

    onModifyEventSettings?: (settings: ModifyCoHostSettingsOptions) => void

    Callback invoked when saving settings.

    Appearance:

    style?: StyleProp<ViewStyle>

    Additional styling for the modal container.

    Advanced Render Overrides:

    renderContent?: (
        options: {
            defaultContent: Element;
            dimensions: { width: number; height: number };
        },
    ) => Element

    Override for the modal content layout.

    renderContainer?: (
        options: {
            defaultContainer: Element;
            dimensions: { width: number; height: number };
        },
    ) => Element

    Override for the outer container implementation.