Asynchronous cutout screen callback information (Cutout Result)
Return Result
CutoutRect
Denotes the rectangular area of the Android screen coordinate system; (0, 0) is always the top left corner of the phone screen.
| Member Variables | Type | Explanation |
|---|---|---|
| Top | int32 | Top coordinate of the rectangle (px) |
| Left | int32 | Left coordinate of the rectangle (px) |
| Bottom | int32 | Bottom coordinate of the rectangle (px) |
| Right | int32 | Right coordinate of the rectangle (px) |
Example Reference
{
Top: 0,
Left: 457,
Bottom: 79,
Right: 624
}
CutoutInfo
Inherited from FINTLBaseResult, contains information related to notched screens.
| Member variable | Type | Explanation |
|---|---|---|
| HasCutout | bool | Existence of cutout screen hardware |
| IsCutoutHidden | bool | Some devices allow users to fill the cutout screen section with black color |
| ScreenHeight | int32 | Screen height (px) |
| ScreenWidth | int32 | Screen width (px) |
| StatusBarHeight | int32 | Status bar height (px) |
| CutoutRects | TArray<FCutoutRect> | Cutout screen area |
| SafeArea | FCutoutRect | Safe area |
Example Reference
{
HasCutout: true,
IsCutoutHidden: false,
CutoutRects: [{Top: 0, Bottom: 79, Left: 457, Right: 624}],
SafeArea: {Top: 79, Bottom: 2400, Left: 0, Right: 1080},
ScreenHeight: 2400,
ScreenWidth: 1080,
StatusBarHeight: 79,
MethodId: 1501,
RetCode: 0,
RetMsg: Success,
ThirdCode: -1,
ThirdMsg: "",
ExtraJson: {
}
}