core
    正在准备搜索索引...

    接口 DeviceInfoResult

    设备信息

    interface DeviceInfoResult {
        brand: string;
        cpuType?: string;
        deviceType: string;
        manufacture: string;
        memoryAvailable: number;
        memoryFree: number;
        memoryTotal: number;
        model: string;
        platform: "ios" | "android" | "ohos" | "ohos_pc" | "windows" | "mac";
        sdkApiVersion: number;
        system: string;
    }
    索引
    brand: string

    设备品牌

    cpuType?: string

    设备 CPU 型号(仅 Android 支持)

    deviceType: string

    设备类型

    • phone 手机
    • tablet 平板
    • 2in1 PC/2in1
    • tv 电视
    manufacture: string

    设备厂家

    memoryAvailable: number

    可用内存 MB

    memoryFree: number

    空闲内存 MB

    memoryTotal: number

    总内存 MB

    model: string

    设备型号

    platform: "ios" | "android" | "ohos" | "ohos_pc" | "windows" | "mac"

    客户端平台

    • ios 苹果 iOS
    • android 安卓 Android
    • ohos 鸿蒙 HarmonyOS
    • ohos_pc 鸿蒙电脑 HarmonyOS PC
    • windows Windows
    • mac macOS
    sdkApiVersion: number

    系统软件 API 版本

    system: string

    操作系统及版本