GIDAuthorizationFlow.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*
  2. * Copyright 2025 Google LLC
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. #import <Foundation/Foundation.h>
  17. #import "GoogleSignIn/Sources/GIDCallbackQueue.h"
  18. #import "GoogleSignIn/Sources/GIDAuthorizationFlow/API/GIDAuthorizationFlowCoordinator.h"
  19. @class GIDConfiguration;
  20. @class GIDProfileData;
  21. @class GIDGoogleUser;
  22. @class GIDSignInInternalOptions;
  23. @class OIDAuthState;
  24. @class OIDServiceConfiguration;
  25. @protocol OIDExternalUserAgentSession;
  26. NS_ASSUME_NONNULL_BEGIN
  27. @interface GIDAuthorizationFlow : NSObject <GIDAuthorizationFlowCoordinator>
  28. @property(nonatomic, strong, nullable) OIDAuthState *authState;
  29. @property(nonatomic, strong, nullable) GIDProfileData *profileData;
  30. @property(nonatomic, strong, nullable) GIDSignInInternalOptions *options;
  31. @property(nonatomic, strong, nullable) GIDGoogleUser *googleUser;
  32. @property(nonatomic, strong, nullable) id<OIDExternalUserAgentSession> currentUserAgentSession;
  33. @property(nonatomic, copy, nullable) NSString *emmSupport;
  34. @property(nonatomic, strong, nullable) NSError *error;
  35. @property(nonatomic, strong, nullable) GIDConfiguration *configuration;
  36. @property(nonatomic, strong, nullable) OIDServiceConfiguration *serviceConfiguration;
  37. - (instancetype)initWithSignInOptions:(nullable GIDSignInInternalOptions *)options
  38. authState:(nullable OIDAuthState *)authState
  39. profileData:(nullable GIDProfileData *)profileData
  40. googleUser:(nullable GIDGoogleUser *)googleUser
  41. externalUserAgentSession:(nullable id<OIDExternalUserAgentSession>)userAgentSession
  42. emmSupport:(nullable NSString *)emmSupport
  43. error:(nullable NSError *)error;
  44. @end
  45. NS_ASSUME_NONNULL_END