Android SDK Migration
ID Module
- Core SDK V2
- Core SDK V3
Amani.sharedInstance()
.IDCapture()
.upload(
this,
"type_of_document",
object : IUploadCallBack{
override fun cb(
isSuccess: Boolean,
result: String?, //Remove it
errors: MutableList<Errors>?) //Remove it
{
}
}
)
Amani.sharedInstance()
.IDCapture()
.upload(
this,
"type_of_document",
object : IUploadCallBack{
override fun cb(isSuccess: Boolean) {
}
}
)
Selfie Module
Selfie
- Core SDK V2
- Core SDK V3
Amani.sharedInstance()
.Selfie()
.upload(
this,
"XXX_SE_0",
object : IUploadCallBack{
override fun cb(
isSuccess: Boolean,
result: String?, //Remove it
errors: MutableList<Errors>? //Remove it
) {
}
}
)
Amani.sharedInstance()
.Selfie()
.upload(
this,
"XXX_SE_0",
object : IUploadCallBack{
override fun cb(
isSuccess: Boolean
) {
}
}
)
Auto Selfie Capture
- Core SDK V2
- Core SDK V3
Amani.sharedInstance()
.AutoSelfieCapture()
.upload(
this,
"XXX_SE_0",
object : IUploadCallBack{
override fun cb(
isSuccess: Boolean,
result: String?, //Remove it
errors: MutableList<Errors>? //Remove it
) {
}
}
)
Amani.sharedInstance()
.AutoSelfieCapture()
.upload(
this,
"XXX_SE_0",
object : IUploadCallBack{
override fun cb(
isSuccess: Boolean
) {
}
}
)
Selfie Pose Estimation
- Core SDK V2
- Core SDK V3
Amani.sharedInstance()
.SelfiePoseEstimation()
.upload(
this,
"XXX_SE_0",
object : IUploadCallBack{
override fun cb(
isSuccess: Boolean,
result: String?, //Remove it
errors: MutableList<Errors>? //Remove it
) {
}
}
)
Amani.sharedInstance()
.SelfiePoseEstimation()
.upload(
this,
"XXX_SE_0",
object : IUploadCallBack{
override fun cb(
isSuccess: Boolean
) {
}
}
)
Signature Module
- Core SDK V2
- Core SDK V3
Amani.sharedInstance()
.Signature()
.upload(
object : IUploadCallBack{
override fun cb(
isSuccess: Boolean,
result: String?, //Remove it
errors: MutableList<Errors>? //Remove it
) {
}
})
Amani.sharedInstance()
.Signature()
.upload(object : IUploadCallBack{
override fun cb(isSuccess: Boolean) {
}
})
NFC Module
- Core SDK V2
- Core SDK V3
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.sharedInstance().ScanNFC().upload(
this,
"XXX_NF_0",
object : IUploadCallBack {
override fun cb(isSuccess: Boolean) {
}
})
Amani Event Listener
- Core SDK V2
- Core SDK V3
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.
Amani.sharedInstance().AmaniEvent().setListener(object : AmaniEventCallBack {
override fun profileStatus(profileStatus: ProfileStatus) {
}
override fun stepsResult(stepsResult: StepsResult?) {
}
override fun onError(type: String?, error: ArrayList<AmaniError?>?) {
}
})