UAWhitelistDelegate

@protocol UAWhitelistDelegate <NSObject>

Delegate protocol for accepting and rejecting white-listed URLs.

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

    Declaration

    Objective-C

    - (BOOL)acceptWhitelisting:(nonnull NSURL *)url scope:(UAWhitelistScope)scope;

    Swift

    optional func acceptWhitelisting(_ url: URL, scope: UAWhitelistScope) -> Bool

    Parameters

    url

    The URL whitelisted by the SDK.

    scope

    The scope of the desired match.

    Return Value

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