GIDGoogleUser
@interface GIDGoogleUser : NSObject <NSSecureCoding>
This class represents a user account.
-
The Google user ID.
Declaration
Swift
var userID: String! { get }
Objective-C
@property (readonly, nonatomic) NSString *userID;
-
Representation of the Basic profile data. It is only available if
GIDSignIn.shouldFetchBasicProfile
is set and either-[GIDSignIn signIn]
or-[GIDSignIn restorePreviousSignIn]
has been completed successfully.Declaration
Swift
var profile: GIDProfileData! { get }
Objective-C
@property (readonly, nonatomic) GIDProfileData *profile;
-
The authentication object for the user.
Declaration
Swift
var authentication: GIDAuthentication! { get }
Objective-C
@property (readonly, nonatomic) GIDAuthentication *authentication;
-
The API scopes granted to the app in an array of
NSString
.Declaration
Swift
var grantedScopes: [Any]! { get }
Objective-C
@property (readonly, nonatomic) NSArray *grantedScopes;
-
For Google Apps hosted accounts, the domain of the user.
Declaration
Swift
var hostedDomain: String! { get }
Objective-C
@property (readonly, nonatomic) NSString *hostedDomain;
-
An OAuth2 authorization code for the home server.
Declaration
Swift
var serverAuthCode: String! { get }
Objective-C
@property (readonly, nonatomic) NSString *serverAuthCode;