Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update my.getSystemInfo.md #2103

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

jujubefoxx
Copy link

添加了safeAreaInsets和safeArea的介绍,其中在模拟器调试中的safeAreaInsets四个坐标值为safeArea的值,safeArea的为safeAreaInsets的值(真机调试正常),已反馈到社区

在模拟器调试中的safeAreaInsets四个坐标值为safeArea的值,safeArea的为safeAreaInsets的值(真机调试正常),已反馈到社区
@hbhftgf
Copy link
Contributor

hbhftgf commented Nov 15, 2022

@yangge19970923 看看

| top | number | 安全区域左上角纵坐标 |
| bottom | number | 安全区域右下角纵坐标 |
| left | number | 安全区域左上角横坐标 |
| right | number | 安全区域右上角横坐标 |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

right、安全区域右下角横坐标。目前 safeArea 线上还是有问题的

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已修改

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已修改

safeArea 出参的话线上目前安卓是没有对齐的,所以暂时不予上线

| height | number | 安全区域的高度 |
| width | number | 安全区域的宽度 |

#### safeAreaInsets 返回值说明
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

没有 safeAreaInsets 这个出参

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image
1669096563549
在IOS和安卓的开发者工具中都获取到了safeAreaInsets的值,IOS真机调试中也获取到了,因为目前手上没有安卓机所以看不到安卓真机调试的数据,但这个接口应该是有safeAreaInsets的出参的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants