GIDSignInButton Class

GIDSignInButton Class Reference

Overview

This class provides the "Sign in with Google" button.

You can instantiate this class programmatically or from a NIB file. You should set up the GIDSignIn shared instance with your client ID and any additional scopes, implement the delegate methods for GIDSignIn, and add this button to your view hierarchy.

Inherits UIControl.

Property Summary

GIDSignInButtonStyle style
 The layout style for the sign-in button. More...
 
GIDSignInButtonColorScheme colorScheme
 The color scheme for the sign-in button. More...
 

Property Detail

- (GIDSignInButtonStyle) style
readwritenonatomicassign

The layout style for the sign-in button.

Possible values:

  • kGIDSignInButtonStyleStandard: 230 x 48 (default)
  • kGIDSignInButtonStyleWide: 312 x 48
  • kGIDSignInButtonStyleIconOnly: 48 x 48 (no text, fixed size)
- (GIDSignInButtonColorScheme) colorScheme
readwritenonatomicassign

The color scheme for the sign-in button.

Possible values:

  • kGIDSignInButtonColorSchemeDark
  • kGIDSignInButtonColorSchemeLight (default)