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
TopintRectangle top coordinate (px)
LeftintRectangle left coordinate (px)
BottomintRectangle bottom coordinate (px)
RightintRectangle right coordinate (px)

Sample for reference

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

CutoutInfo

Inherits from INTLBaseResult, 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
ScreenHeightintScreen height (px)
ScreenWidthintScreen width (px)
StatusBarHeightintStatus bar height (px)
CutoutRectsList<INTLCutoutRect>Special-shaped screen area
SafeAreaINTLCutoutRectSafe 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: {
}
}