Sets the loading color of the page for both light and dark appearance modes.The provided color value must be in ARGB or RGB format.
This can be specified as an ARGB hex:
SolutionCenter.shared.register(listener: SLListener(end: { result in
print("solution end: \(code)")
print("solution end: \(String(describing: signatureId))")
print("solution end: \(String(describing: finishRedirectUrl))")
print("solution end: \(String(describing: extra))")
guard !result.terminated else {
// The flow was terminated. You can provide a corresponding prompt based on result.getCode().
return
}
if result.code == "FINISH" {
// The flow finished normally. Process the result.
if let extraInfo = result.extraInfo,
let submissionStatus = extraInfo["submissionStatus"] as? String,
submissionStatus == "SUBMITTED" {
// KYC data was submitted successfully.
} else {
// Submission failed. At this point, you can get an error code from extraInfo
// and implement other logic based on the code, such as re-selecting a document.
}
} else {
// This branch currently only handles the USER_GIVE_UP case.
}
}))
Starts the Solution flow. Pass in your own URL and a callback listener to receive the result.