Bio Login Module
When setting up Amani for Bio Login, you can use any module under the Selfie Module sections, you need to give the UploadSource parameter in the init method as BIOLOGIN, or you can use the setUploadSource function after initing the Amani SDK.
The usage is as follows:
let amani:Amani = Amani.sharedInstance
amani.initAmani(
server: "",
token: "",
uploadSource: ""
) { customerModel, error in
}
//If you wish you can set upload source parameter on above initAmani func or you can set directly setUploadSource function.
do {
// Here you can set directly enum raw value or you can use string value.
amani.setUploadSource(uploadSource: .BIOLOGIN) // "bio_login"
try amani.selfie().start { previewImage in
}
amani.selfie().upload { isSuccess in
}
} catch {
}