---
title: 결과 수신
canonical: https://developer.unico.io/ko/dual-api/developers/sdks-and-tools/ios/capture-flow/receiving-the-result
locale: ko
generated_by: markdown-export
---

SDK는 촬영 세션 중에 사용된 델리게이트 인터페이스에 정의된 콜백을 통해 촬영 결과를 반환합니다.

## AcessoBioSelfieDelegate

****`onSuccessSelfie`****

이미지가 성공적으로 촬영되면 호출됩니다. 다음을 포함하는 `SelfieResult` 객체를 반환합니다:

  - **`base64`** — 촬영된 이미지; 애플리케이션에서 미리 보기를 표시하는 데 사용할 수 있습니다.
  - **`encrypted`** — REST API를 통한 생체 인식 검증 완료를 위해 백엔드로 전송해야 하는 JWT 페이로드.

  ### Swift

    ```swift
    func onSuccessSelfie(_ result: SelfieResult!) {
      let base64 = result.base64
      let encrypted = result.encrypted // JWT to send to your backend
    }
    ```

### Objective-C

    ```objectivec
    - (void)onSuccessSelfie:(SelfieResult *)result {
      NSString *base64 = result.base64;
      NSString *encrypted = result.encrypted; // JWT to send to your backend
    }
    ```

  :::danger[`encrypted` 사용]
  - `encrypted` 속성은 Client APIs를 통해 이미지를 전송하는 용도로만 엄격히 사용됩니다. 열거보거나 직렬화하거나 수정해서는 안 됩니다 — 특성이 사전 통지 없이 변경될 수 있습니다. 캡처 후 **10분** 이내에 API로 전송해야 합니다. Unico는 부적절한 처리로 인한 손해에 대해 책임을 지지 않습니다.
  - `base64`/`encrypted` 파일은 기기 품질, 생성된 사진 크기 및 Unico의 비즈니스 규칙에 따라 크기가 달라질 수 있습니다. 프로그래밍 로직이나 인프라에서 SDK가 생성한 문자열의 크기를 **제한하지 마십시오**.
  :::

  :::tip[Base64를 비트맵으로 변환]
  `base64`를 비트맵으로 변환해야 하는 경우, 표준 방법은 iOS에서 직접 작동하지 않습니다 — 먼저 쉼표(`,`)에서 문자열을 분리하십시오. [Base64 문자열을 비트맵 이미지로 변환하여 ImageView에 표시하는 방법](https://stackoverflow.com/questions/4837110/how-to-convert-a-base64-string-into-a-bitmap-image-to-show-it-in-a-imageview)을 참조하십시오.
  :::

****`onErrorSelfie`****

촬영 중 오류가 발생하면 호출됩니다. `getCode()`와 `getDescription()`이 포함된 `ErrorBio` 객체를 반환합니다. 오류 코드 전체 목록과 권장 처리 방법은 [오류 처리](/developers/sdks-and-tools/ios/error-handling)를 참조하십시오.

  ### Swift

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

### Objective-C

    ```objectivec
    - (void)onErrorSelfie:(ErrorBio *)errorBio {
      NSString *code = [errorBio getCode];
      NSString *description = [errorBio getDescription];
    }
    ```

## AcessoBioDocumentDelegate

****`onSuccessDocument`****

문서 이미지가 성공적으로 촬영되면 호출됩니다. 다음을 포함하는 `DocumentResult` 객체를 반환합니다:

  - **`base64`** — 촬영된 이미지; 미리 보기를 표시하는 데 사용할 수 있습니다.
  - **`encrypted`** — **10분** 이내에 백엔드로 전송해야 하며 절대 수정하거나 역직렬화해서는 안 되는 JWT 페이로드.

  ### Swift

    ```swift
    func onSuccessDocument(_ result: DocumentResult!) {
      let base64 = result.base64
      let encrypted = result.encrypted // JWT to send to your backend
    }
    ```

### Objective-C

    ```objectivec
    - (void)onSuccessDocument:(DocumentResult *)result {
      NSString *base64 = result.base64;
      NSString *encrypted = result.encrypted; // JWT to send to your backend
    }
    ```

****`onErrorDocument`****

문서 촬영 중 오류가 발생하면 호출됩니다. `ErrorBio` 객체를 반환합니다. 오류 코드 전체 목록은 [오류 처리](/developers/sdks-and-tools/ios/error-handling)를 참조하십시오.

  ### Swift

    ```swift
    func onErrorDocument(_ errorBio: ErrorBio!) {
      let code = errorBio.getCode()
      let description = errorBio.getDescription()
    }
    ```

### Objective-C

    ```objectivec
    - (void)onErrorDocument:(ErrorBio *)errorBio {
      NSString *code = [errorBio getCode];
      NSString *description = [errorBio getDescription];
    }
    ```