如视 Five SDK
    Preparing search index...

    Interface FiveAppProps

    interface FiveAppProps {
        autoCanvas?: boolean;
        children?: ReactNode;
        fallback?: ReactNode;
        fiveInitArgs?: FiveInitArgs;
        fullscreen?: boolean;
        load?: (
            five: Five,
        ) => Promise<
            [
                inputWork: | string
                | string[]
                | LooseWork
                | Work
                | Work[]
                | LooseWork[]
                | LooseWorkWithExtrinsics[]
                | Promise<
                    LooseWork
                    | Work
                    | Work[]
                    | LooseWork[]
                    | LooseWorkWithExtrinsics[],
                >,
                state?: "initial" | "inherit" | Partial<State>,
                options?: number | FiveLoadOptions,
                userAction: boolean,
            ],
        >;
        plugins?: (
            | ((five: Five) => void)
            | [
                Plugin: ((five: Five) => any)
                | ((five: Five, parameters: any) => any),
                instanceName: string | null,
            ]
            | [
                Plugin: ((five: Five) => any)
                | ((five: Five, parameters: any) => any),
                instanceName: string | null,
                parameters: any,
            ]
            | [Plugin: (five: Five) => any, instanceName: string | null]
        )[];
        renderChildren?: boolean;
    }
    Index

    Properties

    autoCanvas?: boolean

    是否自动挂载 FiveAutoCanvas,默认 true

    children?: ReactNode
    fallback?: ReactNode

    加载中显示的 fallback,类似 Suspense 的 fallback

    fiveInitArgs?: FiveInitArgs
    fullscreen?: boolean
    load?: (
        five: Five,
    ) => Promise<
        [
            inputWork: | string
            | string[]
            | LooseWork
            | Work
            | Work[]
            | LooseWork[]
            | LooseWorkWithExtrinsics[]
            | Promise<
                LooseWork
                | Work
                | Work[]
                | LooseWork[]
                | LooseWorkWithExtrinsics[],
            >,
            state?: "initial" | "inherit" | Partial<State>,
            options?: number | FiveLoadOptions,
            userAction: boolean,
        ],
    >
    plugins?: (
        | ((five: Five) => void)
        | [
            Plugin: ((five: Five) => any)
            | ((five: Five, parameters: any) => any),
            instanceName: string | null,
        ]
        | [
            Plugin: ((five: Five) => any)
            | ((five: Five, parameters: any) => any),
            instanceName: string | null,
            parameters: any,
        ]
        | [Plugin: (five: Five) => any, instanceName: string | null]
    )[]
    renderChildren?: boolean