Summary: Nested Classes | Inherited Constants | Fields | Methods | Inherited Methods | [Expand All]
public class

# GoogleSignInOptions

extends Object
implements SafeParcelable Api.ApiOptions.Optional Parcelable

java.lang.Object
↳ | com.google.android.gms.auth.api.signin.GoogleSignInOptions

## Class Overview

GoogleSignInOptions is options used to configure the `GOOGLE_SIGN_IN_API`.

## Summary

Nested Classes
class | GoogleSignInOptions.Builder | Builder for `GoogleSignInOptions`,

[Expand] Inherited Constants
From interface com.google.android.gms.common.internal.safeparcel.SafeParcelable
String | NULL |
From interface android.os.Parcelable
int | CONTENTS_FILE_DESCRIPTOR |
int | PARCELABLE_WRITE_RETURN_VALUE |

Fields
public static final Creator<GoogleSignInOptions> | CREATOR |
public static final GoogleSignInOptions | DEFAULT_SIGN_IN | Default configuration for Google Sign In.

Public Methods
boolean | equals(Object obj)
Scope[] | getScopeArray() Gets an array of all the requested scopes.
int | hashCode()
void | writeToParcel(Parcel out, int flags)

[Expand] Inherited Methods
From class java.lang.Object
Object | clone()
boolean | equals(Object arg0)
void | finalize()
final Class<?> | getClass()
int | hashCode()
final void | notify()
final void | notifyAll()
String | toString()
final void | wait(long arg0, int arg1)
final void | wait(long arg0)
final void | wait()
From interface android.os.Parcelable
abstract int | describeContents()
abstract void | writeToParcel(Parcel arg0, int arg1)

## Fields

#### public static final Creator<GoogleSignInOptions> CREATOR

#### public static final GoogleSignInOptions DEFAULT_SIGN_IN

Default configuration for Google Sign In. You can get a stable user ID and basic profile info back via `getId()` after you trigger sign in from either `silentSignIn(GoogleApiClient)` or `getSignInIntent(GoogleApiClient)`. If you require more information for the sign in result, please build a configuration via `new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)`}.

## Public Methods

#### public boolean equals (Object obj)

#### public Scope[] getScopeArray ()

Gets an array of all the requested scopes. If you use DEFAULT_SIGN_IN, this array will also include those scopes set by default in DEFAULT_SIGN_IN.

A usage of this method could be set the scopes for the contextual SignInButton. E.g., `signInButton.setScopes(googleSignInOptions.getScopeArray())`

#### public int hashCode ()

#### public void writeToParcel (Parcel out, int flags)