Interface AppConfiguration

interface AppConfiguration {
    capturePhotosTransform?: (
        files: LocalFile<NativeFile>[],
        element: Element,
    ) => Promise<LocalFile<NativeFile>[]>;
    getMenuItems: (store: MainStore) => (MenuItem | NestedMenu)[];
    inactivityLogout?: { securityGroupIds?: string[]; timeoutMinutes: number };
    initialScreen: Screen | (store: MainStore) => Screen;
    offline?: {
        gisDataConfig?: { enabled: boolean };
        mapTilesConfig?: OfflineCreatePackOptions[];
        preloadTypes: typeof Element[];
        setupOfflineResources?: (
            store: MainStore,
            onMessage?: (message: string) => void,
        ) => Promise<void>;
    };
    onScanText?: (
        payload: string,
    ) => {
        payload?: Record<string, unknown>;
        source?: string;
        target?: string;
        type: string;
    };
    showEditElementButton?: (element: Element) => boolean;
    showEditListingButton?: (store: MainStore) => boolean;
    usesWorkgroups?: boolean;
}

Properties

capturePhotosTransform?: (
    files: LocalFile<NativeFile>[],
    element: Element,
) => Promise<LocalFile<NativeFile>[]>
getMenuItems: (store: MainStore) => (MenuItem | NestedMenu)[]
inactivityLogout?: { securityGroupIds?: string[]; timeoutMinutes: number }
initialScreen: Screen | (store: MainStore) => Screen
offline?: {
    gisDataConfig?: { enabled: boolean };
    mapTilesConfig?: OfflineCreatePackOptions[];
    preloadTypes: typeof Element[];
    setupOfflineResources?: (
        store: MainStore,
        onMessage?: (message: string) => void,
    ) => Promise<void>;
}
onScanText?: (
    payload: string,
) => {
    payload?: Record<string, unknown>;
    source?: string;
    target?: string;
    type: string;
}
showEditElementButton?: (element: Element) => boolean
showEditListingButton?: (store: MainStore) => boolean
usesWorkgroups?: boolean