Skip to main content

CutoutInfoResult [Player Network SDK Only]

Return Value

CutoutRect

The rectangular area representing the Android screen coordinate system, (0, 0) is always the top left corner of the phone screen.

GUACutoutRect: Notched display regional information.

ParameterTypeDescription
TopintThe top coordinate of the rectangle (px)
LeftintThe left coordinate of the rectangle(px)
BottomintThe bottom coordinate of the rectangle (px)
RightintThe right coordinate of the rectangle (px)

Reference Example

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

CutoutInfo

GUACutoutInfo: Asynchronous notched display callback information, inherits from GUABaseResult, which includes basic information.

ParameterTypeDescription
HasCutoutboolwhether Special-shaped Screenhardware exists
IsCutoutHiddenboolSome devices allow the user to set the use of black to fill the notched parts of the Special-shaped Screen
ScreenHeightintScreen height (px)
ScreenWidthintScreen width (px)
StatusBarHeightintStatus bar height (px)
CutoutRectsList<GUACutoutRect>Special-shaped screen regional
SafeAreaGUACutoutRectSafe Region

Reference Example

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