GIDGoogleUser Class

GIDGoogleUser Class Reference

Overview

This class represents a user account.

Inherits NSObject. Implements <NSCoding>.

Property Summary

NSString * userID
 The Google user ID. More...
 
GIDProfileDataprofile
 Representation of the Basic profile data. More...
 
GIDAuthenticationauthentication
 The authentication object for the user. More...
 
NSArray * accessibleScopes
 The API scopes requested by the app in an array of NSStrings. More...
 
NSString * hostedDomain
 For Google Apps hosted accounts, the domain of the user. More...
 
NSString * serverAuthCode
 An OAuth2 authorization code for the home server. More...
 

Property Detail

- (NSString*) userID
readnonatomicassign

The Google user ID.

- (GIDProfileData*) profile
readnonatomicassign

Representation of the Basic profile data.

It is only available if shouldFetchBasicProfile is set and either signInWithUser or SignIn has been completed successfully.

- (GIDAuthentication*) authentication
readnonatomicassign

The authentication object for the user.

- (NSArray*) accessibleScopes
readnonatomicassign

The API scopes requested by the app in an array of NSStrings.

- (NSString*) hostedDomain
readnonatomicassign

For Google Apps hosted accounts, the domain of the user.

- (NSString*) serverAuthCode
readnonatomicassign

An OAuth2 authorization code for the home server.