pixelRatio | number | 是 | - | | 设备像素比
|
statusBarHeight | number | 是 | - | | 状态栏的高度,单位为px
|
windowTop | number | 是 | - | | 内容区域距离顶部的距离(同CSS变量 --window-top ),单位为px
|
windowBottom | number | 是 | - | | 内容区域距离底部的距离(同CSS变量 --window-bottom ),单位为px
|
safeArea | SafeArea | 是 | - | | 安全区域在屏幕中的位置信息
|
safeAreaInsets | SafeAreaInsets | 是 | - | | 安全区域插入位置(与屏幕边界的距离)信息
|
cutoutArea | Array<CutoutRect> | 否 | - | | 挖孔、刘海区域在屏幕中的位置信息
|
screenTop | number | 是 | - | | 窗口上边缘的 y 值,单位为px 已废弃,仅为了向下兼容保留 |
windowHeight | number | 是 | - | | 可使用窗口高度,单位为px 已废弃,仅为了向下兼容保留 |
windowWidth | number | 是 | - | | 可使用窗口宽度,单位为px 已废弃,仅为了向下兼容保留 |
screenHeight | number | 是 | - | | 屏幕高度,单位为px 已废弃,仅为了向下兼容保留 |
screenWidth | number | 是 | - | | 屏幕宽度,单位为px 已废弃,仅为了向下兼容保留 |