# Interface: GetSystemInfoParams ‹Err›
• GetSystemInfoParams‹Err›()
获取系统信息 参数
# Type parameters:
▪ Err: MogsRes
# Type parameters
▪ Err: MogsRes
# Methods
# Optional
complete
▸ complete(res
: GetSystemInfoRes | Err): void
Inherited from MogsParams.complete
接口调用结束的回调函数(调用成功、失败都会执行)
# 参数:
属性 | 类型 |
---|---|
res | GetSystemInfoRes | Err |
# 返回值:
void
# Optional
fail
▸ fail(err
: Err): void
Inherited from MogsParams.fail
接口调用失败的回调函数
# 参数:
属性 | 类型 |
---|---|
err | Err |
# 返回值:
void
# Optional
success
▸ success(res
: GetSystemInfoRes): void
Inherited from MogsParams.success
接口调用成功的回调函数
# 参数:
属性 | 类型 |
---|---|
res | GetSystemInfoRes |
GetSystemInfoRes
属性 | 类型 | 描述 |
---|---|---|
SDKVersion | string | 客户端基础库版本 |
albumAuthorized | boolean | 允许微信使用相册的开关(仅 iOS 有效) |
benchmarkLevel | number | 设备性能等级(仅 Android 小游戏) |
bluetoothEnabled | boolean | 蓝牙的系统开关 |
brand | string | 设备品牌 |
cameraAuthorized | boolean | 允许微信使用摄像头的开关 |
cyminiMenuButtonPosition? | object | 有乐菜单按钮的尺寸(仅有乐可用) |
errMsg | string | API 调用成功/失败的消息 |
fontSizeSetting | number | 用户字体大小 |
language | string | 微信设置的语言 |
locationAuthorized | boolean | 允许微信使用定位的开关 |
locationEnabled | boolean | 地理位置的系统开关 |
microphoneAuthorized | boolean | 允许微信使用麦克风的开关 |
model | string | 设备型号 |
notificationAlertAuthorized | boolean | 允许微信通知带有提醒的开关(仅 iOS 有效) |
notificationAuthorized | boolean | 允许微信通知的开关 |
notificationBadgeAuthorized | boolean | 允许微信通知带有标记的开关(仅 iOS 有效) |
notificationSoundAuthorized | boolean | 允许微信通知带有声音的开关(仅 iOS 有效) |
pixelRatio | number | 设备像素比 |
platform | string | 客户端平台 |
safeArea | SafeArea | 在竖屏正方向下的安全区域 |
screenHeight | number | 屏幕高度 |
screenWidth | number | 屏幕宽度 |
statusBarHeight | number | 状态栏的高度 |
system | string | 操作系统及版本 |
theme? | "light" | "dark" | 系统当前主题 |
version | string | 微信版本号 |
wifiEnabled | boolean | Wi-Fi 的系统开关 |
windowHeight | number | 可使用窗口高度 |
windowWidth | number | 可使用窗口宽度 |
# 返回值:
void