public abstract class

SmsRetrieverClient

extends GoogleApi<Api.ApiOptions.NoOptions>
implements SmsRetrieverApi
java.lang.Object
   ↳ com.google.android.gms.common.api.GoogleApi<com.google.android.gms.common.api.Api.ApiOptions.NoOptions>
     ↳ com.google.android.gms.auth.api.phone.SmsRetrieverClient

Class Overview

The main entry point for interacting with SmsRetriever.

This is a connectionless client and therefore does not require a GoogleApiClient. See GoogleApi for more information.

Summary

Public Methods
abstract Task<Void> startSmsRetriever()
Starts SmsRetreiver, which waits for ONE matching SMS message until timeout (5 minutes).
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.google.android.gms.auth.api.phone.SmsRetrieverApi

Public Methods

public abstract Task<Void> startSmsRetriever ()

Starts SmsRetreiver, which waits for ONE matching SMS message until timeout (5 minutes). The matching SMS message will be sent via a Broadcast Intent with action SmsRetriever.SMS_RETRIEVED_ACTION.

Returns
Task<Void> a Task for the call. Attach an OnCompleteListener and then check isSuccessful() to determine if it was successful.