Global Variables

The following global variables are available globally.

  • The normal window level for unblu ui. E.g. it is used for the UI provided by UnbluUiApi. Its value is UIWindowLevelNormal + 10

    Declaration

    Swift

    public let UIWindowLevelUnbluUi: UIWindow.Level
  • If you have other UIWindows in your application, their level must be lower or equal then UIWindowLevelUnbluMaxCapturing with at least the level UIWindowLevelNormal or their level must be exactly on the level of UIWindowLevelStatusBar or UIWindowLevelAlert. Otherwise they are NOT captured.

    Declaration

    Swift

    public let UIWindowLevelUnbluMaxCapturing: UIWindow.Level
  • If you place the any unblu inside an UIWindow which should not be captured, you need to set it’s level to UIWindowLevelUnbluUi and set this tag on it. Then it will be replaced with an overlay. This increases performance as the UI must not be traversed. Additionally the WkWebView causes issues (not updating correctly) if it is in a separate UIWindow and captured.

    Declaration

    Swift

    public let UnbluUiWindowTag: Int