GIDUserAuthFlowController.h 987 B

12345678910111213141516171819202122232425262728293031
  1. #import <Foundation/Foundation.h>
  2. @class OIDAuthState;
  3. @class GIDProfileData;
  4. @class GIDSignInInternalOptions;
  5. @class GIDUserAuthFlowResult;
  6. NS_ASSUME_NONNULL_BEGIN
  7. typedef void (^GIDUserAuthFlowCompletion)(GIDUserAuthFlowResult *_Nullable result,
  8. NSError *_Nullable error);
  9. @interface GIDUserAuthFlowController: NSObject
  10. /// This method should be called from your `UIApplicationDelegate`'s `application:openURL:options:`
  11. /// method.
  12. ///
  13. /// @param url The URL that was passed to the app.
  14. /// @return `YES` if `GIDSignIn` handled this URL.
  15. - (BOOL)handleURL:(NSURL *)url;
  16. - (void)authenticateInteractivelyWithOptions:(GIDSignInInternalOptions *)options
  17. completion:(GIDUserAuthFlowCompletion)completion;
  18. - (void)authenticateNonInteractivelyWithOptions:(GIDSignInInternalOptions *)options
  19. completion:(GIDUserAuthFlowCompletion)completion;
  20. @end
  21. NS_ASSUME_NONNULL_END