UAURLAllowListScope
Objective-C
enum UAURLAllowListScope : NSUInteger {}
Swift
struct URLAllowListScope : OptionSet, @unchecked Sendable
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: URLAllowListScope { get }
-
Applies to loading or opening of URLs.
Declaration
Objective-C
UAURLAllowListScopeOpenURL = 1 << 1
Swift
static var openURL: URLAllowListScope { get }
-
Applies to both the JavaScript interface and loading URLs. This is the default scope unless otherwise specified.
Declaration
Objective-C
UAURLAllowListScopeAll = UAURLAllowListScopeJavaScriptInterface | UAURLAllowListScopeOpenURL
Swift
static var all: URLAllowListScope { get }