---
title: Callback / Listener इंटरफ़ेस
canonical: https://developer.unico.io/hi/developers/sdks-and-tools/flutter/api-reference/callback-listener-interfaces
locale: hi
generated_by: markdown-export
---

- [/hi/](/hi/)
- [SDKs और टूल्स](/hi/developers/sdks-and-tools/overview)
- [Flutter SDK](/hi/developers/sdks-and-tools/flutter/requirements)
- API संदर्भ
- Callback / Listener इंटरफ़ेस

# Callback / Listener इंटरफ़ेस

UnicoListener (lifecycle)
| विधि | ट्रिगर |
| --- | --- |
| `onErrorUnico(UnicoError error)` | SDK संचालन के दौरान implementation त्रुटि |
| `onUserClosedCameraManually()` | उपयोगकर्ता ने मैन्युअल रूप से कैमरा बंद किया |
| `onSystemClosedCameraTimeoutSession()` | timeout के कारण session समाप्त (डिफ़ॉल्ट: 45 सेकंड) |
| `onSystemChangedTypeCameraTimeoutFaceInference()` | 13 सेकंड तक कोई चेहरा नहीं पहचाना — capture manual में बदल जाता है |

UnicoSelfie (selfie callbacks)
| विधि | ट्रिगर |
| --- | --- |
| `onSuccessSelfie(ResultCamera result)` | Selfie capture सफल रहा |
| `onErrorSelfie(UnicoError error)` | Selfie capture विफल रहा |

UnicoSdks (User Journey callback)
| विधि | ट्रिगर |
| --- | --- |
| `onSuccess(SuccessResult result)` | Journey flow पूर्ण हुआ — एक `processId` लौटाता है (केवल User Journeys) |
| `onErrorSelfie(UnicoError error)` | Selfie capture विफल रहा |

UnicoDocument (document callbacks)
| विधि | ट्रिगर |
| --- | --- |
| `onSuccessDocument(ResultCamera result)` | Document capture सफल रहा |
| `onErrorDocument(UnicoError error)` | Document capture विफल रहा |

अंतिम अपडेट **22 अक्टू॰ 2026** को