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.
- Unity
- Unreal Engine
GUACutoutRect
: Notched display regional information.
Parameter | Type | Description |
---|---|---|
Top | int | The top coordinate of the rectangle (px) |
Left | int | The left coordinate of the rectangle(px) |
Bottom | int | The bottom coordinate of the rectangle (px) |
Right | int | The right coordinate of the rectangle (px) |
GUACutoutRect
: Notched display regional information.
Parameter | Type | Description |
---|---|---|
top | int | The top coordinate of the rectangle (px) |
left | int | The left coordinate of the rectangle(px) |
bottom | int | The bottom coordinate of the rectangle (px) |
right | int | The right coordinate of the rectangle (px) |
Reference Example
{
Top: 0,
Left: 457,
Bottom: 79,
Right: 624
}
CutoutInfo
- Unity
- Unreal Engine
GUACutoutInfo
: Asynchronous notched display callback information, inherits from GUABaseResult, which includes basic information.
Parameter | Type | Description |
---|---|---|
HasCutout | bool | whether Special-shaped Screenhardware exists |
IsCutoutHidden | bool | Some devices allow the user to set the use of black to fill the notched parts of the Special-shaped Screen |
ScreenHeight | int | Screen height (px) |
ScreenWidth | int | Screen width (px) |
StatusBarHeight | int | Status bar height (px) |
CutoutRects | List<GUACutoutRect> | Special-shaped screen regional |
SafeArea | GUACutoutRect | Safe Region |
GUACutoutResult
: Asynchronous notched display callback information, inherits from GUABaseResult, which includes basic information.
Parameter | Type | Description |
---|---|---|
has_cutout | bool | whether Special-shaped Screenhardware exists |
is_cutout_hidden | bool | Some devices allow the user to set the use of black to fill the notched parts of the Special-shaped Screen |
screen_height | int32 | Screen height (px) |
screen_width | int32 | Screen width (px) |
status_bar_height | int32 | Status bar height (px) |
cutout_rects | std::vector<GUACutoutRect> | Special-shaped screen regional |
safe_area | GUACutoutRect | Safe 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: {
}
}