@gphone/sdk
    Preparing search index...

    Interface AppLevelsConfig

    interface AppLevelsConfig {
        appId: string;
        levels: AppLevel[];
        onback?: () => void;
        title: string | (() => string);
    }
    Index
    appId: string

    The app's registry id — notes, settings. Not its display name.

    Required, and it is what stops Back reaching a backgrounded app. Apps are resident, so this ladder stays registered while the app sits hidden; without an owner the dispatcher would hand back to whichever app registered last rather than the one on screen. The app names itself for the same reason it does in onAppForeground: the shell has no way to hand a component its own registry id.

    levels: AppLevel[]

    Deepest first. Back closes the first one that is open.

    onback?: () => void

    Where back goes once every level is closed. The shell's onback prop.

    title: string | (() => string)

    Title when nothing is open — the app's own name, usually.