Appointments
Requirements
- SDK Chat 2.2.0 and later is REQUIRED
Implementation
- You must to implement
openVideoCallAppointment()method from OnVideoCallRequest interface in your current Activity (e.g. MainActivity):
class <YOUR_ACTIVITY> : Activity, MeetingDoctorsClient.OnVideoCallRequest {
....
MeetingDoctorsClient.instance?.setVideoCallRequestListener(this)
....
override fun openVideoCallAppointment(idAppointment: String, idVideoCall: String, startTime: String, activity: Activity, finishCurrent: Boolean) {
VideoCallClient.requestVideoCallAppointment(idAppointment, idVideoCall, startTime, activity, finishCurrent)
}
}