Kotlin

Enable Picture-in-Picture on Your Activity

On the activity that hosts the video call, set PiP and resize attributes and handle configuration changes so the activity is not recreated when entering PiP:

Attribute Purpose
supportsPictureInPicture Declares that this activity may enter PiP
resizeableActivity Required for multi-window / PiP on many devices
configChanges Avoids destroying the activity on size/orientation changes in PiP