export interface Data { brand?: string; currentBattery?: string; language?: string; model?: string; pixelRatio?: number; pixelWidth?: number; pixelHeight?: number; platform?: string; storage?: string; system?: string; statusBarHeight: number; navigationBarHeight: number; webSource?: number; deviceId?: string; appVersion?: string; suposServerVersion: string; suplinkServerVersion: string; easyMode: boolean; highPerformance: boolean; darkMode: boolean; isTablet: boolean; } /** * return * @typedef Data * @property {string} brand - 设备品牌(如:HUAWEI、XIAOMI、其中:iOS固定Apple) * @property {string} currentBattery - 设备电量 * @property {string} language - 用户设置的语言 * @property {string} model - 手机型号 * @property {number} pixelRatio - 设备像素比(Android中固定1。iOS中表示屏幕宽度像素 / 屏幕宽度点) * @property {number} pixelWidth - 设备像素宽度(Android中表示包含虚拟键的屏幕的宽度像素。iOS中表示屏幕的物理宽度,单位为像素,如:1080。) * @property {number} pixelHeight - 设备像素高度(Android中表示包含虚拟键的屏幕的高度像素。iOS中表示屏幕的物理高度,单位为像素,如:1920。) * @property {string} platform - 系统名称:Android,iOS * @property {string} storage - 设备磁盘大小 * @property {string} system - 系统版本号 * @property {number} statusBarHeight - 状态栏高度(此处为点值,像素值请自行 * 像素比) * @property {number} navigationBarHeight - 导航栏高度(此处为点值,像素值请自行 * 像素比) * @property {number} webSource - webVIew打开方式(0:首页正常打开 1:im中打开 2:jsapi打开 ) * @property {string} deviceId - 设备唯一号 * @property {string} appVersion - [3.3.0]suplinkAPP版本号 * @property {string} suposServerVersion - [3.4.0]supos后端版本 * @property {string} suplinkServerVersion - [3.4.0]suplink后端版本 * @property {boolean} easyMode - [4.3.0]关怀模式 * @property {boolean} highPerformance - [4.3.0]性能优先模式 * @property {boolean} darkMode - [4.3.0]暗黑模式 * @property {boolean} isTablet - [4.17.0]设备:是否为平板(true表示平板;false表示非平板) */ /** * * @name getSystemInfo * @title 获取系统信息 * @description H5: 不支持currentBattery、storage、statusBarHeight * @param * @return {string} code - 200:成功 | 404:失败 * @return {string} msg - 响应信息 * @return {Data} data - 响应数据 * @fragment featch(params) { return suplink.getSystemInfo() } * @example * import { getSystemInfo } from '@suplink/jssdk'; * * getSystemInfo().then((res) => console.log(res)) */ export default function getSystemInfo(): Promise>;