FIRAppDistributionAppDelegateInterceptor.h 1.1 KB

1234567891011121314151617181920212223242526
  1. #import <Foundation/Foundation.h>
  2. #import <UIKit/UIKit.h>
  3. NS_ASSUME_NONNULL_BEGIN
  4. @protocol OIDExternalUserAgentSession;
  5. /// An instance of this class is meant to be registered as an AppDelegate interceptor, and
  6. /// implements the logic that my SDK needs to perform when certain app delegate methods are invoked.
  7. @interface FIRAppDistributionAppDelegatorInterceptor : NSObject <UIApplicationDelegate>
  8. /// Returns the MYAppDelegateInterceptor singleton.
  9. /// Always register just this singleton as the app delegate interceptor. This instance is
  10. /// retained. The App Delegate Swizzler only retains weak references and so this is needed.
  11. + (instancetype)sharedInstance;
  12. /*! @brief The authorization flow session which receives the return URL from \SFSafariViewController.
  13. @discussion We need to store this in the app delegate as it's that delegate which receives the
  14. incoming URL on UIApplicationDelegate.application:openURL:options:. This property will be
  15. nil, except when an authorization flow is in progress.
  16. */
  17. @property(nonatomic, strong, nullable) id<OIDExternalUserAgentSession> currentAuthorizationFlow;
  18. @end
  19. NS_ASSUME_NONNULL_END