ButtonBrowser

protocol ButtonBrowser : NSObjectProtocol

Undocumented

Opening a URL

  • Opens a URL in the Browser. Works with direct and non-direct partnerships.

    Declaration

    Swift

    static func open(url: URL)

    Parameters

    url

    The URL to open (required).

  • Opens a URL in the Browser with a configuration object. Works with direct and non-direct partnerships.

    Declaration

    Swift

    static func open(url: URL, config: Any!)

    Parameters

    url

    The URL to open (required).

    config

    An object used to configure the Browser (optional).

  • Opens a URL in the Browser with a completion handler. Works with direct and non-direct partnerships.

    Declaration

    Swift

    static func open(url: URL) async throws

    Parameters

    url

    The URL to open (required).

    completionHandler

    A block that is invoked after opening the URL (optional).

  • Opens a URL in the Browser with a configuration object and a completion handler. Works with direct and non-direct partnerships.

    Declaration

    Swift

    static func open(url: URL, config: Any!) async throws

    Parameters

    url

    The URL to open (required).

    config

    An object used to configure the Browser (optional).

    completionHandler

    A block that is invoked after opening the URL (optional).

  • Deprecated

    Use ‘Button.openURL()’ or any of the other method signatures instead.

    Opens a URL in the Browser. Works with direct and non-direct partnerships.

    Declaration

    Swift

    static func open(url: URL, title: String?, subtitle: String?) async throws

    Parameters

    url

    The URL to open (required).

    title

    A title to set on the Browser (optional).

    subtitle

    A subtitle to set on the Browser (optional).

    completionHandler

    A block that is invoked after opening the URL (optional).