UAURLAllowListDelegate

Objective-C

@protocol UAURLAllowListDelegate <NSObject>

Swift

protocol UAURLAllowListDelegate : NSObjectProtocol

Delegate protocol for accepting and rejecting URLs.

URL allow list Delegate Optional Methods

  • Called when a URL has been allowed by the SDK, but before the URL is fetched.

    Declaration

    Objective-C

    - (BOOL)allowURL:(nonnull NSURL *)URL scope:(UAURLAllowListScope)scope;

    Swift

    optional func allow(_ URL: URL, scope: UAURLAllowListScope) -> Bool

    Parameters

    URL

    The URL allowed by the SDK.

    scope

    The scope of the desired match.

    Return Value

    YES to accept this URL, NO to reject this URL.