public interface VerificationListener
Modifier and Type | Method and Description |
---|---|
void |
onInitiated(InitiationResult initiationResult)
Called when the verification initiation has been completed successfully.
|
void |
onInitiationFailed(java.lang.Exception exception)
Called when the verification initiation has failed.
|
void |
onVerificationFailed(java.lang.Exception exception)
Called when the verification has failed.
|
void |
onVerificationFallback()
Called if the verification status transitions to ERROR
Will only be called if 'allowFallback' was set to true when initialising the SinchVerification
|
void |
onVerified()
Called when the verification has been completed successfully.
|
void onInitiated(InitiationResult initiationResult)
initiationResult
- Verification parameters provided on initiation,
for e.x. the selected sms language.void onInitiationFailed(java.lang.Exception exception)
exception
- An exception describing the error. May be one of
InvalidInputException
, ServiceErrorException
or a native one
like SocketException.void onVerified()
void onVerificationFailed(java.lang.Exception exception)
exception
- An exception describing the error. May be one of
InvalidInputException
, CodeInterceptionException
,
IncorrectCodeException
, ServiceErrorException
or a native one like SocketException.void onVerificationFallback()