UAWhitelistScope

enum UAWhitelistScope {}

Scope option for whitelist matching.

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

    Declaration

    Objective-C

    UAWhitelistScopeJavaScriptInterface = 1 << 0

    Swift

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

    Declaration

    Objective-C

    UAWhitelistScopeOpenURL = 1 << 1

    Swift

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

    Declaration

    Objective-C

    UAWhitelistScopeAll =
        UAWhitelistScopeJavaScriptInterface | UAWhitelistScopeOpenURL

    Swift

    static var all: UAWhitelistScope { get }