Android APIs
public static class

GoogleApiClient.ServerAuthCodeCallbacks.CheckResult

extends Object
java.lang.Object
   ↳ com.google.android.gms.common.api.GoogleApiClient.ServerAuthCodeCallbacks.CheckResult

Class Overview

The result holder for onCheckServerAuthorization(String, Set) which contains below information:

  • Whether the server needs a server auth code to exchange for a refresh token.
  • What scopes the server requires if it needs a new refresh token.

Summary

Public Methods
static GoogleApiClient.ServerAuthCodeCallbacks.CheckResult newAuthNotRequiredResult()
Creates a CheckResult object indicating no further auth is needed, i.e.
static GoogleApiClient.ServerAuthCodeCallbacks.CheckResult newAuthRequiredResult(Set<Scope> requiredScopes)
Creates a CheckResult object indicating further auth is needed, i.e.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static GoogleApiClient.ServerAuthCodeCallbacks.CheckResult newAuthNotRequiredResult ()

Creates a CheckResult object indicating no further auth is needed, i.e. server doesn't need a (new) auth code to exchange for a (new) refresh token.

Returns

public static GoogleApiClient.ServerAuthCodeCallbacks.CheckResult newAuthRequiredResult (Set<Scope> requiredScopes)

Creates a CheckResult object indicating further auth is needed, i.e. server needs a (new) auth code to exchange for a (new) refresh token.

Parameters
requiredScopes the scope set which server requires for offline access.
Returns
Throws
IllegalArgumentException if a null or empty set is passed in for the requiredScopes parameter