Today's Menu  Portugal
journal and plan nutrition
GIDSignInButton.h
Go to the documentation of this file.
1 /*
2  * GIDSignInButton.h
3  * Google Sign-In iOS SDK
4  *
5  * Copyright 2012 Google Inc.
6  *
7  * Use of this SDK is subject to the Google APIs Terms of Service:
8  * https://developers.google.com/terms/
9  */
10 
11 #import <UIKit/UIKit.h>
12 
13 // The various layout styles supported by the GIDSignInButton.
14 // The minimum size of the button depends on the language used for text.
15 // The following dimensions (in points) fit for all languages:
16 // kGIDSignInButtonStyleStandard: 230 x 48
17 // kGIDSignInButtonStyleWide: 312 x 48
18 // kGIDSignInButtonStyleIconOnly: 48 x 48 (no text, fixed size)
19 typedef NS_ENUM(NSInteger, GIDSignInButtonStyle) {
20  kGIDSignInButtonStyleStandard = 0,
21  kGIDSignInButtonStyleWide = 1,
22  kGIDSignInButtonStyleIconOnly = 2
23 };
24 
25 // The various color schemes supported by the GIDSignInButton.
26 typedef NS_ENUM(NSInteger, GIDSignInButtonColorScheme) {
27  kGIDSignInButtonColorSchemeDark = 0,
28  kGIDSignInButtonColorSchemeLight = 1
29 };
30 
31 // This class provides the "Sign in with Google" button. You can instantiate this
32 // class programmatically or from a NIB file. You should set up the
33 // |GIDSignIn| shared instance with your client ID and any additional scopes,
34 // implement the delegate methods for |GIDSignIn|, and add this button to your
35 // view hierarchy.
36 @interface GIDSignInButton : UIControl
37 
38 // The layout style for the sign-in button.
39 // Possible values:
40 // - kGIDSignInButtonStyleStandard: 230 x 48 (default)
41 // - kGIDSignInButtonStyleWide: 312 x 48
42 // - kGIDSignInButtonStyleIconOnly: 48 x 48 (no text, fixed size)
43 @property(nonatomic, assign) GIDSignInButtonStyle style;
44 
45 // The color scheme for the sign-in button.
46 // Possible values:
47 // - kGIDSignInButtonColorSchemeDark
48 // - kGIDSignInButtonColorSchemeLight (default)
49 @property(nonatomic, assign) GIDSignInButtonColorScheme colorScheme;
50 
51 @end
GIDSignInButtonColorScheme colorScheme
typedef NS_ENUM(NSInteger, GIDSignInButtonStyle)
GIDSignInButtonStyle style