PurchasePathExtension Protocol Reference

PurchasePathExtension

Undocumented

shouldCloseBrowser(_:)`

Called before the browser is closed.

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

Declaration

Parameters

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

Return Value

YES if the browser should close, NO otherwise.

browserDidInitialize(_:)`

Called when the browser initializes and before anything is displayed.

Declaration

Parameters

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

browserWillNavigate(_:)`

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

Declaration

Parameters

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

browser(_:didNavigateTo:)`

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

Declaration

Parameters

<br> browser<br> The interface to the browser object that can be used to customize the display.
<br> page<br> The object representing the information about the page to which the browser did navigate.

browser(_:didNavigateToProduct:)`

Called when the browser navigates to a product page.

Declaration

Parameters

<br> browser<br> The interface to the browser object that can be used to customize the display.
<br> page<br> The object representing the information about the product to which the browser did navigate.

browser(_:didNavigateToPurchase:)`

Called when the browser navigates to a purchase page.

Declaration

Parameters

<br> browser<br> The interface to the browser object that can be used to customize the display.
<br> page<br> The object representing the information about the purchase to which the browser did navigate.

browserDidClose()`

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