BrowserConfig

class BrowserConfig : NSObject

Configuration class used to provide customizable parameters to the Browser.

  • An optional token to be associated with all downstream orders, transactions and webhooks. (Max 100 chars.)

    Declaration

    Swift

    var pubRef: String? { get set }
  • The Button-provided identifier for the offer backing the Purchase Path this may begin.

    Declaration

    Swift

    var offerId: String? { get set }
  • The title to show in the Browser header chrome.

    Declaration

    Swift

    var title: String? { get set }
  • The subtitle to show in the Browser header chrome.

    Declaration

    Swift

    var subtitle: String? { get set }
  • Initializes a Browser Config object with a pubRef.

    Declaration

    Swift

    init(pubRef: String)

    Parameters

    pubRef

    The token to be associated with all downstream orders, transactions and webhooks. (Max 100 chars.)

    Return Value

    A configuration object populated with the provided pubRef.

  • Initializes a Browser Config object with a title and an optional subtitle.

    Declaration

    Swift

    init(title: String, subtitle: String?)

    Parameters

    title

    The title to show in the Browser header chrome.

    subtitle

    The optional subtitle to show in the Browser header chrome.

    Return Value

    A configuration object populated with the provided title and subtitle.