Skip to main content

Cutout Result

Return value

CutoutRect

Represents the rectangular area that is defined by the Android screen coordinate system. (0, 0) is always the upper left corner of the screen.

Member VariableTypeDescription
Topint32Rectangle top coordinate (px)
Leftint32Rectangle left coordinate (px)
Bottomint32Rectangle bottom coordinate (px)
Rightint32Rectangle right coordinate (px)

Sample for reference

{
Top: 0,
Left: 457,
Bottom: 79,
Right: 624
}

CutoutInfo

Inherits fromFINTLBaseResult, includes information about the notched display.

Member VariableTypeDescription
HasCutoutboolWhether the device has a notched display
IsCutoutHiddenboolSome devices allow users to fill the gaps of special-shaped screens with black
ScreenHeightint32Screen height (px)
ScreenWidthint32Screen width (px)
StatusBarHeightint32Status bar height (px)
CutoutRectsTArray<FCutoutRect>Special-shaped screen area
SafeAreaFCutoutRectSafe area

Sample for 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: {
}
}