Add scheduled callbacks

Let your customers request a scheduled callback in your app using the Zoom Contact Center SDK for Android.

Start the scheduled callback service

After initializing the SDK, call the getZoomCCScheduledCallbackService function to get ZoomCCScheduledCallbackService and initialize with the api-key. Then call fetchUI to open the scheduled callback view.

Show the scheduled callback view controller

ZoomCCScheduledCallbackService
 service = ZoomCCInterface.INSTANCE.getZoomCCScheduledCallbackService();
service.init(new ZoomCCItem("YourApiKey", null, ZoomCCIInterfaceType.SCHEDULED_CALLBACK, CCServerType.CCServerWWW));
service.fetchUI();
val service = ZoomCCInterface.getZoomCCScheduledCallbackService()
service.init(
   ZoomCCItem(
       apiKey = "YourApiKey",
       sdkType = ZoomCCIInterfaceType.SCHEDULED_CALLBACK,
       serverType = CCServerType.CCServerWWW
   )
)
service.fetchUI()

End the scheduled callback service

To end the scheduled callback service, log off and release the SDK resources.

Log off

To stop receiving callbacks from the SDK, call logoff().

ZoomCCScheduledCallbackService service = ZoomCCInterface.INSTANCE.getZoomCCScheduledCallbackService();
service.logoff();
var service = ZoomCCInterface.getZoomCCScheduledCallbackService()
service.logoff()

Release SDK resources

To release SDK resources, call releaseZoomCCService in onDestroy().

protected void onDestroy() {
ZoomCCInterface.INSTANCE.releaseZoomCCService("YourApiKey");
super.onDestroy();
}
override fun onDestroy() {
ZoomCCInterface.releaseZoomCCService("YourApiKey")
super.onDestroy()
}