---
title: परिणाम प्राप्त करना
canonical: https://developer.unico.io/hi/dual-api/developers/sdks-and-tools/ios/capture-flow/receiving-the-result
locale: hi
generated_by: markdown-export
---

SDK capture result को capture session के दौरान उपयोग किए गए delegate interfaces में परिभाषित callbacks के माध्यम से लौटाता है।

## AcessoBioSelfieDelegate

****`onSuccessSelfie`****

जब छवि सफलतापूर्वक capture होती है तो कॉल की जाती है। एक `SelfieResult` object लौटाता है:

  - **`base64`** — captured छवि; आपके application में preview प्रदर्शित करने के लिए उपयोग की जा सकती है।
  - **`encrypted`** — JWT payload जो REST API के माध्यम से biometric validation पूर्ण करने के लिए आपके backend को भेजा जाना चाहिए।

  ### 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` attribute विशेष रूप से Client APIs के माध्यम से छवि भेजने के लिए intended है। इसे खोला, serialized या संशोधित नहीं किया जाना चाहिए — इसकी विशेषताएं बिना पूर्व सूचना के बदल सकती हैं। इसे capture के **10 मिनट** के भीतर API को भेजा जाना चाहिए। Unico अनुचित handling से होने वाले किसी भी नुकसान के लिए उत्तरदायी नहीं है।
  - `base64`/`encrypted` फ़ाइलें डिवाइस quality, generated photo size, और Unico के business rules के आधार पर आकार में भिन्न हो सकती हैं। अपनी programming logic या infrastructure में SDK द्वारा generate की गई string के आकार को **सीमित न करें**।
  :::

  :::tip[Base64 से bitmap]
  यदि आपको `base64` को bitmap में convert करने की आवश्यकता है, तो standard विधि iOS पर directly काम नहीं करती — पहले string को comma (`,`) पर split करें। देखें [How to convert a Base64 string into a Bitmap image to show it in an ImageView?](https://stackoverflow.com/questions/4837110/how-to-convert-a-base64-string-into-a-bitmap-image-to-show-it-in-a-imageview)।
  :::

****`onErrorSelfie`****

जब capture के दौरान त्रुटि होती है तो कॉल की जाती है। `getCode()` और `getDescription()` के साथ `ErrorBio` object लौटाता है। Error codes की पूरी सूची और अनुशंसित handling के लिए [Error handling](/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`****

जब document छवि सफलतापूर्वक capture होती है तो कॉल की जाती है। एक `DocumentResult` object लौटाता है:

  - **`base64`** — captured छवि; preview प्रदर्शित करने के लिए उपयोग की जा सकती है।
  - **`encrypted`** — JWT payload जो **10 मिनट** के भीतर आपके backend को भेजा जाना चाहिए और कभी भी modify या deserialized नहीं किया जाना चाहिए।

  ### 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`****

जब document capture के दौरान त्रुटि होती है तो कॉल की जाती है। एक `ErrorBio` object लौटाता है। Error codes की पूरी सूची के लिए [Error handling](/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];
    }
    ```