PurchasePathExtension

protocol PurchasePathExtension : NSObjectProtocol

Undocumented

  • Called before the browser is closed.

    @discussion Use this method to intercept and prevent a browser dismissal.

    Declaration

    Swift

    optional func shouldCloseBrowser(_ browser: any BrowserInterface) -> Bool

    Parameters

    browser

    The interface to the browser object that can be used to customize the display.

    Return Value

    YES if the browser should close, NO otherwise.

  • Called when the browser initializes and before anything is displayed.

    Declaration

    Swift

    optional func browserDidInitialize(_ browser: any BrowserInterface)

    Parameters

    browser

    The interface to the browser object that can be used to customize the display.

  • Called when the browser prepares for navigation to a new page.

    Declaration

    Swift

    optional func browserWillNavigate(_ browser: any BrowserInterface)

    Parameters

    browser

    The interface to the browser object that can be used to customize the display.

  • Called when the browser navigates to a new page that is neither a product nor a purchase.

    Declaration

    Swift

    optional func browser(_ browser: any BrowserInterface, didNavigateTo page: any BrowserPage)

    Parameters

    browser

    The interface to the browser object that can be used to customize the display.

    page

    The object representing the information about the page to which the browser did navigate.

  • Called when the browser navigates to a product page.

    Declaration

    Swift

    optional func browser(_ browser: any BrowserInterface, didNavigateToProduct page: any ProductPage)

    Parameters

    browser

    The interface to the browser object that can be used to customize the display.

    page

    The object representing the information about the product to which the browser did navigate.

  • Called when the browser navigates to a purchase page.

    Declaration

    Swift

    optional func browser(_ browser: any BrowserInterface, didNavigateToPurchase page: any PurchasePage)

    Parameters

    browser

    The interface to the browser object that can be used to customize the display.

    page

    The object representing the information about the purchase to which the browser did navigate.

  • Called when the browser is closed. This does not mean a purchase was completed.

    @discussion This can happen when the user dismisses the browser or chooses to install the native app.

    Declaration

    Swift

    optional func browserDidClose()