Skip to main content

CutoutInfoObserver [Player Network SDK Only]

Register the callback of the asynchronous notched display information acquisition interface, the game needs to process the callback function. For more information on the callback data structure, see GUACutoutInfoResult.

note

It is strongly recommended to perform registration in the startup function of the game application.[Player Network SDK Only].

Function Definition

The list of methods used to process the callback events.

Callback EventCommon[Player Network SDK Only][MSDK Only]
CutoutResultEvents-LoadCutoutData-
event OnResultHandler<GUACutoutInfo> CutoutResultEvents;

Code Sample

UnionAdapterAPI.GetToolsService().CutoutResultEvents += OnCutoutResultEvents;

UnionAdapterAPI.GetToolsService().CutoutResultEvents -= OnCutoutResultEvents;

#if UNITY_ANDROID
private void OnCutoutResultEvents(GUACutoutInfo result)
{
Debug.Log("Cutout info:" + result.ToString());
}
#endif