Skip to main content

Android SDK Migration

ID Module

Amani.sharedInstance()
.IDCapture()
.upload(
this,
"type_of_document",
object : IUploadCallBack{
override fun cb(
isSuccess: Boolean,
result: String?, //Remove it
errors: MutableList<Errors>?) //Remove it
{

}
}
)

Selfie Module

Selfie

Amani.sharedInstance()                                                                     
.Selfie()
.upload(
this,
"XXX_SE_0",
object : IUploadCallBack{
override fun cb(
isSuccess: Boolean,
result: String?, //Remove it
errors: MutableList<Errors>? //Remove it
) {

}
}
)

Auto Selfie Capture

Amani.sharedInstance()                                                                     
.AutoSelfieCapture()
.upload(
this,
"XXX_SE_0",
object : IUploadCallBack{
override fun cb(
isSuccess: Boolean,
result: String?, //Remove it
errors: MutableList<Errors>? //Remove it
) {

}
}
)

Selfie Pose Estimation

Amani.sharedInstance()                                                                          
.SelfiePoseEstimation()
.upload(
this,
"XXX_SE_0",
object : IUploadCallBack{
override fun cb(
isSuccess: Boolean,
result: String?, //Remove it
errors: MutableList<Errors>? //Remove it
) {

}
}
)

Signature Module

Amani.sharedInstance()
.Signature()
.upload(
object : IUploadCallBack{
override fun cb(
isSuccess: Boolean,
result: String?, //Remove it
errors: MutableList<Errors>? //Remove it
) {

}
})

NFC Module

 Amani.sharedInstance().ScanNFC().upload(
this,
"XXX_NF_0",
object : IUploadCallBack{
override fun cb(
isSuccess: Boolean,
result: String?, //Remove it
errors: MutableList<Errors>? //Remove it
) {

}
})

Amani Event Listener


NOTE

AmaniEvent Listener is available for use starting from Amani SDK v3.0.0 and later.

In versions below v3.0.0, events such as status returned as a result of document upload could be listened to once by the callback in the upload method of the relevant module. AmaniEvent listener replaces this structure and offers the opportunity to listen to events coming from the web socket in more detail.