-
Notifications
You must be signed in to change notification settings - Fork 4
Call UI Display Mode
Kristiyan Petrov edited this page Mar 23, 2020
·
3 revisions
Since v1.5.0 it is provided a way 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.
- PICTURE IN PICTURE: 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
CallModule callModule = BandyerSDKClient.getInstance().getCallModule();
if (callModule == null) return;
Call ongoingCall = callModule.getOngoingCall();
if (ongoingCall == null) return;
callModule.setDisplayMode(ongoingCall,
CallDisplayMode.FOREGROUND
// CallDisplayMode.BACKGROUND
// CallDisplayMode.PICTURE_IN_PICTURE
);