GoogleSignIn Framework Reference

Classes

The following classes are available globally.

  • This class represents the OAuth 2.0 entities needed for sign-in.

    Declaration

    Swift

    class GIDAuthentication : NSObject, NSSecureCoding

    Objective-C

    @interface GIDAuthentication : NSObject <NSSecureCoding>
  • 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 user account.

    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>
  • This class signs the user in with Google.

    For reference, please see “Google Sign-In for iOS” at https://developers.google.com/identity/sign-in/ios

    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 signInWithConfiguration:presentingViewController:callback: on GIDSignIn and add it to your view hierarchy.

    Declaration

    Swift

    class GIDSignInButton : UIControl

    Objective-C

    @interface GIDSignInButton : UIControl