requestPermission(for:referrerURL:completionHandler:)
Declaration
func requestPermission(for url: URL, referrerURL: URL?, completionHandler: @escaping @Sendable (BEWebContentFilterPermissionDecision, (any Error)?) -> Void)func requestPermission(for url: URL, referrerURL: URL?) async throws -> BEWebContentFilterPermissionDecisionParameters
- url:
The URL to be added.
- referrerURL:
The URL that initiated the permission request. This determines whether or not parent approval is done remotely or on-device.
- completionHandler:
The completion block to be called when the add operation is complete, with result of the operation. Result is BEWebContentFilterPermissionDecision that holds the outcome of the request for access.
Discussion
Request a blocked URL to be added to built-in web content filter’s allowlist