GoogleSignIn Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
Classes
The following classes are available globally.
-
This class represents the client configuration provided by the developer.
Declaration
Swift
class GIDConfiguration : NSObject, NSCopying, NSSecureCoding
Objective-C
@interface GIDConfiguration : NSObject <NSCopying, NSSecureCoding>
-
This class represents a signed-in user.
Declaration
Swift
class GIDGoogleUser : NSObject, NSSecureCoding
Objective-C
@interface GIDGoogleUser : NSObject <NSSecureCoding>
-
This class represents the basic profile information of a
GIDGoogleUser
.
Declaration
Swift
class GIDProfileData : NSObject, NSCopying, NSSecureCoding
Objective-C
@interface GIDProfileData : NSObject <NSCopying, NSSecureCoding>
-
Declaration
Swift
class GIDSignIn : NSObject
Objective-C
@interface GIDSignIn : NSObject
-
This class provides the “Sign in with Google” button.
You can instantiate this class programmatically or from a NIB file. You should connect this
control to an
IBAction
, or something similar, that calls
signInWithPresentingViewController:completion: on
GIDSignIn
and add it to your view
hierarchy.
Declaration
Objective-C
@interface GIDSignInButton : UIControl
-
A helper object that contains the result of a successful signIn or addScopes flow.
Declaration
Swift
class GIDSignInResult : NSObject
Objective-C
@interface GIDSignInResult : NSObject
-
This class represents an OAuth2 or OpenID Connect token.
Declaration
Swift
class GIDToken : NSObject, NSSecureCoding
Objective-C
@interface GIDToken : NSObject <NSSecureCoding>
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-12-13 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"
}]