FIRIAMRenderingWindowHelper.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * Copyright 2018 Google
  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 <UIKit/UIKit.h>
  17. NS_ASSUME_NONNULL_BEGIN
  18. /**
  19. * To avoid the risk of hijacking the app's existing view transition flow, we render in-app message
  20. * views in a new top-level UIWindow instead of presenting them from app's existing UIWindow.
  21. * The caller is supposed to set the rootViewController to be the appropriate view controller
  22. * for the in-app message and call setHidden:NO to make it really visible.
  23. */
  24. NS_EXTENSION_UNAVAILABLE("Firebase In App Messaging is not supported for iOS extensions.")
  25. @interface FIRIAMRenderingWindowHelper : NSObject
  26. /// Returns the singleton `UIWindow` object used for rendering IAM views that block
  27. /// user interactions with underlying content.
  28. + (UIWindow *)windowForBlockingView;
  29. /// Returns the singleton `UIWindow` object used for rendering IAM views that don't block
  30. /// user interactions with underlying content.
  31. + (UIWindow *)windowForNonBlockingView;
  32. @end
  33. NS_ASSUME_NONNULL_END