GoogleSignInAccount

class GoogleSignInAccount : Parcelable


Class that holds the basic account information of the signed in Google user.

Summary

Public functions

Boolean
equals(obj: Any?)
Account?

A convenient wrapper for getEmail which returns an android.accounts.Account object.

(Mutable)Set<Scope!>

Returns all scopes that have been authorized to your application.

Int
Unit
writeToParcel(out: Parcel!, flags: Int)

Inherited functions

From android.os.Parcelable
abstract Int

Constants

Public functions

equals

fun equals(obj: Any?): Boolean

getAccount

fun getAccount(): Account?

A convenient wrapper for getEmail which returns an android.accounts.Account object. See getEmail doc for details.

getGrantedScopes

fun getGrantedScopes(): (Mutable)Set<Scope!>

Returns all scopes that have been authorized to your application.

This can be a larger set than what you have requested via GoogleSignInOptions. We recommend apps requesting minimum scopes at user sign in time and later requesting additional scopes incrementally when user is using a certain feature. For those apps following this incremental auth practice, they can use the returned scope set to determine all authorized scopes (across platforms and app re-installs) to turn on bonus features accordingly. The returned set can also be larger due to other scope handling logic.

hashCode

fun hashCode(): Int

writeToParcel

fun writeToParcel(out: Parcel!, flags: Int): Unit

Public properties

displayName

val displayNameString?

email

val emailString?

familyName

val familyNameString?

givenName

val givenNameString?

id

val idString?

idToken

val idTokenString?

photoUrl

val photoUrlUri?

serverAuthCode

val serverAuthCodeString?