CallVerificationEvent

public final class CallVerificationEvent implements 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)
public annotation CallVerificationEvent.EventType

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

Constants

static final int

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

static final int

Unknown or unspecified event type.

static final int

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

Public constructors

Public methods

static final @NonNull String

Converts the EventType to a human-readable string.

final int

The type of event.

@NonNull String

Returns a string representation of the event type.

void
writeToParcel(@NonNull Parcel dest, int flags)

Serializes this object to a Parcel.

Constants

EVENT_TYPE_NON_LEGIT_CALL_ENDED

public static final int EVENT_TYPE_NON_LEGIT_CALL_ENDED = 2

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

EVENT_TYPE_UNKNOWN

public static final int EVENT_TYPE_UNKNOWN = 0

Unknown or unspecified event type.

EVENT_TYPE_VERDICT_TIMEOUT

public static final int EVENT_TYPE_VERDICT_TIMEOUT = 1

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

Public fields

CREATOR

public static final @NonNull Parcelable.Creator<@NonNull CallVerificationEventCREATOR

Public constructors

CallVerificationEvent

public CallVerificationEvent(@CallVerificationEvent.EventType int eventType)

Public methods

eventTypeToString

public static final @NonNull String eventTypeToString(@CallVerificationEvent.EventType int eventType)

Converts the EventType to a human-readable string.

getEventType

public final int getEventType()

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

toString

public @NonNull String toString()

Returns a string representation of the event type.

Returns
@NonNull String

A string representation of the event type.

writeToParcel

public void writeToParcel(@NonNull Parcel dest, int flags)

Serializes this object to a Parcel.

Parameters
@NonNull Parcel dest

The Parcel in which the object should be written.

int flags

Additional flags about how the object should be written.