मुख्य सामग्री पर जाएं

Callback / Listener इंटरफ़ेस

UnicoListener (lifecycle)
विधिट्रिगर
onErrorUnico(UnicoError error)SDK संचालन के दौरान implementation त्रुटि
onUserClosedCameraManually()उपयोगकर्ता ने मैन्युअल रूप से कैमरा बंद किया
onSystemClosedCameraTimeoutSession()timeout के कारण session समाप्त (डिफ़ॉल्ट: 40 सेकंड)
onSystemChangedTypeCameraTimeoutFaceInference()13 सेकंड तक कोई चेहरा नहीं पहचाना — capture manual में बदल जाता है
UnicoSelfie (selfie callbacks)
विधिट्रिगर
onSuccessSelfie(ResultCamera result)Selfie capture सफल रहा
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 विफल रहा