igpapi — Instagram private API Simulator for Node.js (API reference) 4.14.0
    Preparing search index...

    Interface PostingCameraActions

    The actions of PostingCameraScreen: the methods you call on its handle while the screen is open.

    interface PostingCameraActions {
        openGallery: (
            ...args: [],
        ) => Effect<
            PostingCameraGalleryHandle,
            | IgCheckpointError
            | IgAccountSuspendedError
            | IgAccountDisabledError
            | IgLoginRequiredError
            | IgUserLoggedOutError
            | ScreenEnterConcurrentError
            | ScreenDataError
            | ScreenEdgeInputError,
            never,
        >;
        switchMode: (
            ...args: readonly ["story"],
        ) => Effect<
            AssembledHandle<
                "PostingCamera",
                "screen",
                {
                    cameraSessionId: string;
                    entry: "feed-button"
                    | "reels-tab"
                    | "gallery-picker"
                    | "camera-switch";
                    mode: "reel" | "story";
                    origin: "feed" | "reels-tab";
                },
                PostingCameraActions,
                Record<never, never>,
                ScreenHandle,
                "required",
                true,
                never,
                AndroidScreens,
            >,

                | IgCheckpointError
                | IgAccountSuspendedError
                | IgAccountDisabledError
                | IgLoginRequiredError
                | IgUserLoggedOutError
                | ScreenEnterConcurrentError
                | ScreenDataError
                | ScreenEdgeInputError,
            never,
        >;
    }
    Index

    Properties

    openGallery: (
        ...args: [],
    ) => Effect<
        PostingCameraGalleryHandle,
        | IgCheckpointError
        | IgAccountSuspendedError
        | IgAccountDisabledError
        | IgLoginRequiredError
        | IgUserLoggedOutError
        | ScreenEnterConcurrentError
        | ScreenDataError
        | ScreenEdgeInputError,
        never,
    >

    Taps the gallery thumbnail and opens the camera's gallery, which lists the phone's photos and videos in the camera's mode. Answers its handle.

    switchMode: (
        ...args: readonly ["story"],
    ) => Effect<
        AssembledHandle<
            "PostingCamera",
            "screen",
            {
                cameraSessionId: string;
                entry: "feed-button"
                | "reels-tab"
                | "gallery-picker"
                | "camera-switch";
                mode: "reel" | "story";
                origin: "feed" | "reels-tab";
            },
            PostingCameraActions,
            Record<never, never>,
            ScreenHandle,
            "required",
            true,
            never,
            AndroidScreens,
        >,

            | IgCheckpointError
            | IgAccountSuspendedError
            | IgAccountDisabledError
            | IgLoginRequiredError
            | IgUserLoggedOutError
            | ScreenEnterConcurrentError
            | ScreenDataError
            | ScreenEdgeInputError,
        never,
    >

    Moves the camera's mode selector to Story and opens the story camera over this one. This is the one move of the selector that is offered. Answers the story camera's handle.