GIDProfileData
@interface GIDProfileData : NSObject <NSCopying, NSSecureCoding>
This class represents the basic profile information of a GIDGoogleUser
.
-
The Google user’s email.
Declaration
Swift
var email: String! { get }
Objective-C
@property (readonly, nonatomic) NSString *email;
-
The Google user’s full name.
Declaration
Swift
var name: String! { get }
Objective-C
@property (readonly, nonatomic) NSString *name;
-
The Google user’s given name.
Declaration
Swift
var givenName: String! { get }
Objective-C
@property (readonly, nonatomic) NSString *givenName;
-
The Google user’s family name.
Declaration
Swift
var familyName: String! { get }
Objective-C
@property (readonly, nonatomic) NSString *familyName;
-
Whether or not the user has profile image.
Declaration
Swift
var hasImage: Bool { get }
Objective-C
@property (readonly, nonatomic) BOOL hasImage;
-
Gets the user’s profile image URL for the given dimension in pixels for each side of the square.
Declaration
Swift
func imageURL(withDimension dimension: UInt) -> URL!
Objective-C
- (NSURL *)imageURLWithDimension:(NSUInteger)dimension;
Parameters
dimension
The desired height (and width) of the profile image.
Return Value
The URL of the user’s profile image.