CallVerificationEvent

class CallVerificationEvent : Parcelable


Represents an event sent from Google Play services to the Bank App, providing updates, failures, or actions taken by Google Play services during the call verification process.

Summary

Nested types

@IntDef(value = [0, 1, 2])
@Retention(value = AnnotationRetention.SOURCE)
annotation CallVerificationEvent.EventType

Defines the possible types of events that can be sent from Google Play services to the Bank App.

Constants

const Int

Confirmation that Google Play services successfully ended a call because the Bank App provided a CallVerificationVerdict.NOT_LEGIT_CALL verdict.

const Int

Unknown or unspecified event type.

const Int

Indicates that Google Play services timed out waiting for a verdict from the Bank App during the call verification process.

Public companion functions

String

Converts the EventType to a human-readable string.

Public companion properties

Parcelable.Creator<CallVerificationEvent>

Public constructors

Public functions

open String

Returns a string representation of the event type.

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

Serializes this object to a Parcel.

Public properties

Int

The type of event.

Constants

EVENT_TYPE_NON_LEGIT_CALL_ENDED

const val EVENT_TYPE_NON_LEGIT_CALL_ENDED = 2: Int

Confirmation that Google Play services successfully ended a call because the Bank App provided a CallVerificationVerdict.NOT_LEGIT_CALL verdict.

EVENT_TYPE_UNKNOWN

const val EVENT_TYPE_UNKNOWN = 0: Int

Unknown or unspecified event type.

EVENT_TYPE_VERDICT_TIMEOUT

const val EVENT_TYPE_VERDICT_TIMEOUT = 1: Int

Indicates that Google Play services timed out waiting for a verdict from the Bank App during the call verification process.

Public companion functions

eventTypeToString

fun eventTypeToString(@CallVerificationEvent.EventType eventType: Int): String

Converts the EventType to a human-readable string.

Public companion properties

Public constructors

CallVerificationEvent

CallVerificationEvent(@CallVerificationEvent.EventType eventType: Int)

Public functions

toString

open fun toString(): String

Returns a string representation of the event type.

Returns
String

A string representation of the event type.

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

eventType

val eventTypeInt

The type of event. Must be one of the constants defined in the EventType.