@@ -126,6 +126,47 @@ typedef void (^GIDDisconnectCallback)(NSError *_Nullable error);
126126 hint : (nullable NSString *)hint
127127 callback : (nullable GIDSignInCallback)callback ;
128128
129+ // / Starts an interactive sign-in flow using the provided configuration and a login hint.
130+ // /
131+ // / The callback will be called at the end of this process. Any saved sign-in state will be
132+ // / replaced by the result of this flow. Note that this method should not be called when the app is
133+ // / starting up, (e.g in `application:didFinishLaunchingWithOptions:`); instead use the
134+ // / `restorePreviousSignInWithCallback:` method to restore a previous sign-in.
135+ // /
136+ // / @param configuration The configuration properties to be used for this flow.
137+ // / @param additionalScopes Additional scopes to request
138+ // / @param presentingViewController The view controller used to present `SFSafariViewContoller` on
139+ // / iOS 9 and 10 and to supply `presentationContextProvider` for `ASWebAuthenticationSession` on
140+ // / iOS 13+.
141+ // / @param callback The `GIDSignInCallback` block that is called on completion. This block will be
142+ // / called asynchronously on the main queue.
143+ - (void )signInWithConfiguration : (GIDConfiguration *)configuration
144+ additionalScopes : (NSArray <NSString *> *)additionalScopes
145+ presentingViewController : (UIViewController *)presentingViewController
146+ callback : (nullable GIDSignInCallback)callback ;
147+
148+ // / Starts an interactive sign-in flow using the provided configuration and a login hint.
149+ // /
150+ // / The callback will be called at the end of this process. Any saved sign-in state will be
151+ // / replaced by the result of this flow. Note that this method should not be called when the app is
152+ // / starting up, (e.g in `application:didFinishLaunchingWithOptions:`); instead use the
153+ // / `restorePreviousSignInWithCallback:` method to restore a previous sign-in.
154+ // /
155+ // / @param configuration The configuration properties to be used for this flow.
156+ // / @param additionalScopes Additional scopes to request
157+ // / @param presentingViewController The view controller used to present `SFSafariViewContoller` on
158+ // / iOS 9 and 10 and to supply `presentationContextProvider` for `ASWebAuthenticationSession` on
159+ // / iOS 13+.
160+ // / @param hint An optional hint for the authorization server, for example the user's ID or email
161+ // / address, to be prefilled if possible.
162+ // / @param callback The `GIDSignInCallback` block that is called on completion. This block will be
163+ // / called asynchronously on the main queue.
164+ - (void )signInWithConfiguration : (GIDConfiguration *)configuration
165+ additionalScopes : (NSArray <NSString *> *)additionalScopes
166+ presentingViewController : (UIViewController *)presentingViewController
167+ hint : (nullable NSString *)hint
168+ callback : (nullable GIDSignInCallback)callback ;
169+
129170// / Starts an interactive consent flow to add scopes to the current user's grants.
130171// /
131172// / The callback will be called at the end of this process. If successful, a new `GIDGoogleUser`
0 commit comments