Skip to main content

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 VariablesTypeExplanation
Topint32Top coordinate of the rectangle (px)
Leftint32Left coordinate of the rectangle (px)
Bottomint32Bottom coordinate of the rectangle (px)
Rightint32Right 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 VariablesTypeExplanation
HasCutoutboolExistence of cutout screen hardware
IsCutoutHiddenboolSome devices allow users to fill the cutout screen section with black color
ScreenHeightint32Screen height (px)
ScreenWidthint32Screen width (px)
StatusBarHeightint32Status bar height (px)
CutoutRectsTArray<FCutoutRect> Cutout screen area
SafeAreaFCutoutRectSafe 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: {
}
}