> For a complete documentation index, fetch https://docs.voximplant.ai/llms.txt

# ConnectionCallback (interface)

[com.voximplant.android.sdk.core](/api-reference/androidsdk3/android/sdk/core/overview)

Interface that the application implements to receive the result of establishing the connection to the Voximplant Cloud.

**Methods**

* [onFailure](/api-reference/androidsdk3/android/sdk/core/connectioncallback#onfailure)
* [onSuccess](/api-reference/androidsdk3/android/sdk/core/connectioncallback#onsuccess)

## Methods

### onFailure

`fun onFailure(error: `[`ConnectionError`](/api-reference/androidsdk3/android/sdk/core/connectionerror)`): Unit`

Reports that the connection is failed.

**Parameters**

| Parameter | Type                                                                             | Requirement | Description                                  |
| --------- | -------------------------------------------------------------------------------- | ----------- | -------------------------------------------- |
| `error`   | [`ConnectionError`](/api-reference/androidsdk3/android/sdk/core/connectionerror) |             | Reason why the connection is not established |

**Returns:** Unit

### onSuccess

`fun onSuccess(): Unit`

Reports that the connection is established successfully.

**Returns:** Unit