GIDSignInDelegate
@protocol GIDSignInDelegate <NSObject>
A protocol implemented by the delegate of GIDSignIn
to receive a refresh token or an error.
-
The sign-in flow has finished and was successful if
error
isnil
.Declaration
Swift
func sign(_ signIn: GIDSignIn!, didSignInFor user: GIDGoogleUser!, withError error: Error!)
Objective-C
- (void)signIn:(GIDSignIn *)signIn didSignInForUser:(GIDGoogleUser *)user withError:(NSError *)error;
-
Finished disconnecting
user
from the app successfully iferror
isnil
.Declaration
Swift
optional func sign(_ signIn: GIDSignIn!, didDisconnectWith user: GIDGoogleUser!, withError error: Error!)
Objective-C
- (void)signIn:(GIDSignIn *)signIn didDisconnectWithUser:(GIDGoogleUser *)user withError:(NSError *)error;