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

The SDK returns the capture result through callbacks defined in the delegate interfaces used during the capture session.

## AcessoBioSelfieDelegate

:::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/ios/capture-flow/user-journeys). It is required: without it, the SDK fails with error [`74001`](/developers/sdks-and-tools/ios/error-handling).

`onSuccessSelfie` must still be implemented to satisfy the delegate 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.

  ### Swift

    ```swift
    func onSuccess(_ result: SuccessResult!) {
      let processId = result.processId
    }
    ```

### Objective-C

    ```objectivec
    - (void)onSuccess:(SuccessResult *)result {
      NSString *processId = result.processId;
    }
    ```

****`onErrorSelfie`****

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

  ### Swift

    ```swift
    func onErrorSelfie(_ errorBio: ErrorBio!) {
      let code = errorBio.code
      let description = errorBio.desc
    }
    ```

### Objective-C

    ```objectivec
    - (void)onErrorSelfie:(ErrorBio *)errorBio {
      NSInteger code = errorBio.code;
      NSString *description = errorBio.desc;
    }
    ```