# Add scheduled callbacks

<!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->

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

```java
ZoomCCScheduledCallbackService
 service = ZoomCCInterface.INSTANCE.getZoomCCScheduledCallbackService();
service.init(new ZoomCCItem("YourApiKey", null, ZoomCCIInterfaceType.SCHEDULED_CALLBACK, CCServerType.CCServerWWW));
service.fetchUI();
```

```kotlin
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()`.

```java
ZoomCCScheduledCallbackService service = ZoomCCInterface.INSTANCE.getZoomCCScheduledCallbackService();
service.logoff();
```

```kotlin
var service = ZoomCCInterface.getZoomCCScheduledCallbackService()
service.logoff()
```

### Release SDK resources

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

```java
protected void onDestroy() {
ZoomCCInterface.INSTANCE.releaseZoomCCService("YourApiKey");
super.onDestroy();
}
```

```kotlin
override fun onDestroy() {
ZoomCCInterface.releaseZoomCCService("YourApiKey")
super.onDestroy()
}
```
