Picture-in-Picture Mode
Requirements
- SDK Chat 2.0.0 and later is REQUIRED
 - Only works on API level 26 and later
 
Implementation
- You must to implement returnToVideoCall() method from OnVideoCallRequest interface and onOpenChat() method from ChatInteractionListener interface in your current Activity (e.g. MainActivity):
 
    class <YOUR_ACTIVITY> : Activity, MeetingDoctorsClient.OnVideoCallRequest, VideoCallClient.ChatInteractionListener  {
        ....
        MeetingDoctorsClient.instance?.setVideoCallRequestListener(this)
        VideoCallClient.setChatInterfaceListener(this)
        ....
        override fun returnToVideoCall() {
          VideoCallClient.backToVcFomChat()
        }
        override fun onOpenChat(doctorHash: String) {
          MeetingDoctorsClient.instance?.openChatFromVC(this, doctorHash)
        }
    }