---
title: Receiving the result
canonical: https://developer.unico.io/developers/sdks-and-tools/android/capture-flow/receiving-the-result
locale: en
generated_by: markdown-export
---

The SDK returns the capture result through callbacks defined in the listener interface used during the capture session.

## iAcessoBioSelfie

:::info[Unico API]
`onSuccess` is only delivered when the camera is opened with a `webAppToken` — the `process.webAppToken` returned by [Create Process](/developers/api-reference/post-processes). See [User Journeys](/developers/sdks-and-tools/android/capture-flow/user-journeys).

`onSuccessSelfie` must still be implemented to satisfy the listener interface, but its result is not used in a Unico API integration.
:::

****`onSuccess`****

Called upon successfully completing the journey. Returns a `SuccessResult` object containing a `processId` used to query the result of the customer validation process via the REST API.

   ### Kotlin

    ```kotlin
    override fun onSuccess(result: SuccessResult) {
      val processId = result.processId
    }
    ```

### Java

    ```java
    @Override
    public void onSuccess(SuccessResult result) {
      String processId = result.getProcessId();
    }
    ```

****`onErrorSelfie`****

Called when an error occurs during capture. Returns an `ErrorBio` object with a code and description. See [Error handling](/developers/sdks-and-tools/android/error-handling) for the full list of error codes and recommended handling.

  ### Kotlin

    ```kotlin
    override fun onErrorSelfie(errorBio: ErrorBio) {
      val code = errorBio.code
      val description = errorBio.description
    }
    ```

### Java

    ```java
    @Override
    public void onErrorSelfie(ErrorBio errorBio) {
      String code = errorBio.getCode();
      String description = errorBio.getDescription();
    }
    ```