GoogleSignIn Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
GIDProfileData
@interface GIDProfileData : NSObject <NSCopying, NSSecureCoding>
This class represents the basic profile information of a
GIDGoogleUser
.
-
Declaration
Swift
var email: String { get }
Objective-C
@property (nonatomic, readonly) NSString *_Nonnull email;
-
The Google user’s full name.
Declaration
Swift
var name: String { get }
Objective-C
@property (nonatomic, readonly) NSString *_Nonnull name;
-
The Google user’s given name.
Declaration
Swift
var givenName: String? { get }
Objective-C
@property (nonatomic, readonly, nullable) NSString *givenName;
-
The Google user’s family name.
Declaration
Swift
var familyName: String? { get }
Objective-C
@property (nonatomic, readonly, nullable) NSString *familyName;
-
Whether or not the user has profile image.
Declaration
Swift
var hasImage: Bool { get }
Objective-C
@property (nonatomic, readonly) 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
- (nullable 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.
Except as otherwise noted, the content of this page is licensed under the
Creative Commons Attribution 4.0 License
, and code samples are licensed under the
Apache 2.0 License
. For details, see the
Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-10-18 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]