UAURLAllowListScope

Objective-C

enum UAURLAllowListScope {}

Swift

struct UAURLAllowListScope : OptionSet

Scope option for URL allow list matching.

  • Applies to the JavaScript Native Bridge interface. This is the de-facto scope prior to SDK 9.

    Declaration

    Objective-C

    UAURLAllowListScopeJavaScriptInterface = 1 << 0

    Swift

    static var javaScriptInterface: UAURLAllowListScope { get }
  • Applies to loading or opening of URLs.

    Declaration

    Objective-C

    UAURLAllowListScopeOpenURL = 1 << 1

    Swift

    static var openURL: UAURLAllowListScope { get }
  • Applies to both the JavaScript interface and loading URLs. This is the default scope unless otherwise specified.

    Declaration

    Swift

    static var all: UAURLAllowListScope { get }