IncomingCallRetrieverClient

@DoNotMock(value = "Use canonical fakes instead.")
public interface IncomingCallRetrieverClient extends HasApiKey


A client for developers to instantiate incoming call retriever API.

Summary

Public methods

abstract @NonNull Task<@NonNull PendingIntent>
@RequiresApi(value = 29)
startIncomingCallRetriever(
    @NonNull IncomingCallRetrieverRequest incomingCallRetrieverRequest
)

Starts the incoming call retriever API, which rejects the first incoming call within the phone range provided in the IncomingCallRetrieverRequest within a timeout.

Public methods

startIncomingCallRetriever

@RequiresApi(value = 29)
abstract @NonNull Task<@NonNull PendingIntentstartIncomingCallRetriever(
    @NonNull IncomingCallRetrieverRequest incomingCallRetrieverRequest
)

Starts the incoming call retriever API, which rejects the first incoming call within the phone range provided in the IncomingCallRetrieverRequest within a timeout.

Parameters
@NonNull IncomingCallRetrieverRequest incomingCallRetrieverRequest

calling client needs to pass a corresponding IncomingCallRetrieverRequest instance. This contains a phone number range from which the incoming call is expected for verification.

Returns
@NonNull Task<@NonNull PendingIntent>

a PendingIntent to launch the user consent screen.