Contents

requestPermission(for:referrerURL:presenting:completionHandler:)

Declaration

func requestPermission(for url: URL, referrerURL: URL?, presenting presentingView: UIView?, completionHandler: @escaping  @Sendable (BEWebContentFilterPermissionDecision, (any Error)?) -> Void)
func requestPermission(for url: URL, referrerURL: URL?, presenting presentingView: UIView?) async throws -> BEWebContentFilterPermissionDecision

Parameters

  • 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.

  • presentingView:

    The view to present permission UI from.

  • 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