interface ICorePlatform {
    beforeExit: (fn: () => void) => () => void;
    getDefaultLogLevel: () => null | number;
    getDeviceModel: () => string;
    isOnline?: () => boolean;
    log: (
        color: number,
        level: number,
        tag: string,
        fmt: string,
        args: unknown[],
    ) => void;
    normalizeFile?: (
        file: UploadFileLike,
    ) => MaybePromise<
        null
        | { file?: UploadFileLike; fileName?: string; fileSize?: number },
    >;
    onNetworkChanged?: (fn: (connected: boolean) => void) => () => void;
}

Implemented by

Properties

beforeExit: (fn: () => void) => () => void
getDefaultLogLevel: () => null | number
getDeviceModel: () => string
isOnline?: () => boolean
log: (
    color: number,
    level: number,
    tag: string,
    fmt: string,
    args: unknown[],
) => void
normalizeFile?: (
    file: UploadFileLike,
) => MaybePromise<
    null
    | { file?: UploadFileLike; fileName?: string; fileSize?: number },
>
onNetworkChanged?: (fn: (connected: boolean) => void) => () => void