MediaSFU React Native
    Preparing search index...

    Interface PollModalOptions

    Configuration options for the PollModal component.

    PollModalOptions

    Modal Control:

    interface PollModalOptions {
        isPollModalVisible: boolean;
        onClose: () => void;
        position?: "center" | "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
        backgroundColor?: string;
        member: string;
        islevel: string;
        polls: Poll[];
        poll: Poll;
        socket: Socket;
        roomName: string;
        showAlert?: ShowAlert;
        updateIsPollModalVisible: (isVisible: boolean) => void;
        handleCreatePoll: HandleCreatePollType;
        handleEndPoll: HandleEndPollType;
        handleVotePoll: HandleVotePollType;
        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

    isPollModalVisible: boolean

    Controls modal visibility.

    onClose: () => void

    Callback invoked when the modal should close.

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

    Modal anchoring position.

    backgroundColor?: string

    Background color for the modal surface.

    member: string

    Identifier for the current participant submitting votes.

    islevel: string

    Permission level ('0' participant, '1' co-host, '2' host) driving available actions.

    Session Context:

    polls: Poll[]

    Collection of every poll available in the session.

    poll: Poll

    Currently active poll (if any) displayed in the modal.

    socket: Socket

    Active socket.io connection for real-time poll updates.

    roomName: string

    Room identifier associated with poll events.

    showAlert?: ShowAlert

    Optional alert helper for surfacing poll feedback.

    Customization:

    updateIsPollModalVisible: (isVisible: boolean) => void

    Updates the external visibility state.

    Poll Management:

    handleCreatePoll: HandleCreatePollType

    Handler that persists a new poll (host/co-host only).

    handleEndPoll: HandleEndPollType

    Handler that terminates the active poll (host/co-host only).

    handleVotePoll: HandleVotePollType

    Handler that records the participant's vote selection.

    User Context:

    style?: StyleProp<ViewStyle>

    Extra styles applied to the modal container.

    Advanced Render Overrides:

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

    Custom renderer for the modal body content.

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

    Custom renderer that can wrap/replace the outer modal container.