IncomingCallRetrieverRequest

public final class IncomingCallRetrieverRequest implements Parcelable


Request for initiating incoming call retriever API for phone number verification. The mandatory parameters are the country code, at least one-digit prefix, and a lower bound and upper bound that must have the same number of digits. Therefore, in addition to the integer range, the number of digits of incoming call number must also be known and should be equal to number of digits in country code + number of digits in prefix + number of digits in lower bound.

Summary

Public constructors

IncomingCallRetrieverRequest(
    @NonNull String countryCode,
    @NonNull String prefix,
    @NonNull String startRange,
    @NonNull String endRange
)

Public methods

final int
final @NonNull String

Country code of the caller phone number.

final @NonNull String

Upper bound of the phone number range from which the client should expect a call.

final @NonNull String

Prefix of the caller phone number.

final @NonNull String

Lower bound of the phone number range from which the client should expect a call.

void
writeToParcel(@NonNull Parcel dest, int flags)

Public fields

Public constructors

IncomingCallRetrieverRequest

public IncomingCallRetrieverRequest(
    @NonNull String countryCode,
    @NonNull String prefix,
    @NonNull String startRange,
    @NonNull String endRange
)

Public methods

describeContents

public final int describeContents()

getCountryCode

public final @NonNull String getCountryCode()

Country code of the caller phone number. Always remove the leading + if present. Example: 1

getEndRange

public final @NonNull String getEndRange()

Upper bound of the phone number range from which the client should expect a call. This bound is inclusive and must be strictly greater than or equal to the startRange. Example: 999999

getPrefix

public final @NonNull String getPrefix()

Prefix of the caller phone number. Example: 6576

getStartRange

public final @NonNull String getStartRange()

Lower bound of the phone number range from which the client should expect a call. This bound is inclusive and must be strictly less than or equal to the endRange. Example: 000000

writeToParcel

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