GoogleSignIn Framework Reference

Type-Definitions

The following type definitions are available globally.

  • A callback block that takes a GIDAuthentication or an error if the attempt to refresh tokens was unsuccessful.

    Declaration

    Swift

    typealias GIDAuthenticationAction = (GIDAuthentication?, Error?) -> Void

    Objective-C

    typedef void (^GIDAuthenticationAction)(GIDAuthentication *_Nullable,
                                            NSError *_Nullable)
  • Represents a callback block that takes a GIDGoogleUser on success or an error if the operation was unsuccessful.

    Declaration

    Swift

    typealias GIDSignInCallback = (GIDGoogleUser?, Error?) -> Void

    Objective-C

    typedef void (^GIDSignInCallback)(GIDGoogleUser *_Nullable, NSError *_Nullable)
  • Represents a callback block that takes an error if the operation was unsuccessful.

    Declaration

    Swift

    typealias GIDDisconnectCallback = (Error?) -> Void

    Objective-C

    typedef void (^GIDDisconnectCallback)(NSError *_Nullable)