

# Unsubscribe a callback function when an Connect Customer agent workspace agent's next queued availability state changes
<a name="3P-apps-agent-events-nextavailabilitystatechanged-unsub"></a>

Unsubscribes the callback function from the agent next availability state change event in the Connect Customer agent workspace.

 **Signature** 

```
offNextAvailabilityStateChanged(handler: NextAvailabilityStateChangedHandler)
```

 **Usage** 

```
agentClient.offNextAvailabilityStateChanged(handler);
```