Call UI Display Mode - KaleyraVideo/VideoAndroidSDK GitHub Wiki
It's possible to change how the call UI should be displayed while the Bandyer SDK has an ongoing call.
The call UI can be displayed in the following display modes:
- Foreground: fullscreen call UI
- Background: the call UI is active but running in the background and can be retrieved through recent apps' screen.
- PictureInPictureE: the call UI is active and shown in the default picture in picture window. No call controls can be triggered while shown in this display mode
The display mode can be updated every time is needed when the call activity is currently displayed.
KaleyraVideo.conference.call.onEach {
call.setDisplayMode(CallUI.DisplayMode.PictureInPicture) // CallUI.DisplayMode.Foreground, CallUI.DisplayMode.Background
}.launchIn(lifecycleScope)