<GIDSignInUIDelegate> Protocol

<GIDSignInUIDelegate> Protocol Reference

Overview

A protocol which may be implemented by consumers of GIDSignIn to be notified of when GIDSignIn has finished dispatching the sign-in request.

This protocol is useful for developers who implement their own "Sign In with Google" button. Because there may be a brief delay between when the call to signIn is made, and when the app switch occurs, it is best practice to have the UI react to the user's input by displaying a spinner or other UI element. The signInWillDispatch method should be used to stop or hide the spinner.

Inherits <NSObject>.

Instance Method Summary

(void) - signInWillDispatch:error:
 The sign-in flow has finished selecting how to proceed, and the UI should no longer display a spinner or other "please wait" element. More...
 
(void) - signIn:presentViewController:
 If implemented, this method will be invoked when sign in needs to display a view controller. More...
 
(void) - signIn:dismissViewController:
 If implemented, this method will be invoked when sign in needs to dismiss a view controller. More...
 

Method Detail

- (void) signInWillDispatch: (GIDSignIn *)  signIn
error: (NSError *)  error 
optional

The sign-in flow has finished selecting how to proceed, and the UI should no longer display a spinner or other "please wait" element.

- (void) signIn: (GIDSignIn *)  signIn
presentViewController: (UIViewController *)  viewController 
optional

If implemented, this method will be invoked when sign in needs to display a view controller.

The view controller should be displayed modally (via UIViewController's presentViewController method, and not pushed unto a navigation controller's stack.

- (void) signIn: (GIDSignIn *)  signIn
dismissViewController: (UIViewController *)  viewController 
optional

If implemented, this method will be invoked when sign in needs to dismiss a view controller.

Typically, this should be implemented by calling dismissViewController on the passed view controller.