CallVerificationVerdict

class CallVerificationVerdict : Parcelable


Represents the verdict of a call verification performed by the Bank App.

Summary

Nested types

@IntDef(value = [0, 1, 2, 3, 4])
@Retention(value = AnnotationRetention.SOURCE)
annotation CallVerificationVerdict.VerificationState

Defines the possible integer constants for the verification state.

Constants

const Int

Indicates the call is confirmed to be legitimate by the Bank App.

const Int

Indicates the call is confirmed to be not legitimate by the Bank App.

const Int

Indicates the call verification status is unknown.

const Int

Indicates the Bank App tried to determine the call's legitimacy, but couldn't definitively determine it.

Public companion functions

CallVerificationVerdict

Creates a verdict indicating the Bank App couldn't determine the call's legitimacy.

CallVerificationVerdict

Creates a verdict indicating the call is legitimate.

CallVerificationVerdict

Creates a verdict indicating the call is not legitimate.

Public companion properties

Parcelable.Creator<CallVerificationVerdict>

Public constructors

CallVerificationVerdict(
    @CallVerificationVerdict.VerificationState verificationState: Int,
    errorMessage: String?
)

Public functions

open Unit
writeToParcel(dest: Parcel, flags: Int)

Serializes this object to a Parcel.

Public properties

Int

The state of the verification.

Constants

LEGIT_CALL

const val LEGIT_CALL = 1: Int

Indicates the call is confirmed to be legitimate by the Bank App.

NOT_LEGIT_CALL

const val NOT_LEGIT_CALL = 2: Int

Indicates the call is confirmed to be not legitimate by the Bank App.

UNKNOWN

const val UNKNOWN = 0: Int

Indicates the call verification status is unknown.

VERDICT_INCONCLUSIVE

const val VERDICT_INCONCLUSIVE = 3: Int

Indicates the Bank App tried to determine the call's legitimacy, but couldn't definitively determine it.

Public companion functions

inconclusive

fun inconclusive(): CallVerificationVerdict

Creates a verdict indicating the Bank App couldn't determine the call's legitimacy.

legit

fun legit(): CallVerificationVerdict

Creates a verdict indicating the call is legitimate.

notLegit

fun notLegit(): CallVerificationVerdict

Creates a verdict indicating the call is not legitimate.

Public companion properties

Public constructors

CallVerificationVerdict

CallVerificationVerdict(
    @CallVerificationVerdict.VerificationState verificationState: Int,
    errorMessage: String? = null
)

Public functions

writeToParcel

open fun writeToParcel(dest: Parcel, flags: Int): Unit

Serializes this object to a Parcel.

Parameters
dest: Parcel

The Parcel in which the object should be written.

flags: Int

Additional flags about how the object should be written.

Public properties

verificationState

val verificationStateInt

The state of the verification. This indicates whether the call is considered LEGIT_CALL, NOT_LEGIT_CALL, or VERDICT_INCONCLUSIVE if the call authenticity could not be determined. Must be one of the constants defined in the VerificationState.