Skip to content

Call UI Display Mode

kristiyan-petrov edited this page Nov 22, 2023 · 3 revisions

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)
Clone this wiki locally