public interface

PurchasePathExtension

com.usebutton.sdk.purchasepath.PurchasePathExtension

Class Overview

This interface allows you to create a Purchase Path extension for dynamic customization of the embedded browser user experience.

Summary

Public Methods
abstract void onClosed()
Notify the host application that browser was closed.
abstract void onInitialized(BrowserInterface browser)
Notify the host application the browser was initialized before content has been displayed.
abstract void onPageNavigate(BrowserInterface browser, BrowserPage page)
Notify the host application that the browser has started to receive content that is neither a product nor a purchase.
abstract void onProductNavigate(BrowserInterface browser, ProductPage page)
Notify the host application that the browser has started to receive content that is a product page.
abstract void onPurchaseNavigate(BrowserInterface browser, PurchasePage page)
Notify the host application that the browser has started to receive content that is a purchase page.
abstract void onStartNavigate(BrowserInterface browser)
Notify the host application that a new page has started loading.

Public Methods

public abstract void onClosed ()

Notify the host application that browser was closed. This does not mean a purchase was completed.

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

public abstract void onInitialized (BrowserInterface browser)

Notify the host application the browser was initialized before content has been displayed.

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

public abstract void onPageNavigate (BrowserInterface browser, BrowserPage page)

Notify the host application that the browser has started to receive content that is neither a product nor a purchase. (ex. home page, category page, etc.)

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

public abstract void onProductNavigate (BrowserInterface browser, ProductPage page)

Notify the host application that the browser has started to receive content that is a product page.

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

public abstract void onPurchaseNavigate (BrowserInterface browser, PurchasePage page)

Notify the host application that the browser has started to receive content that is a purchase page.

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

public abstract void onStartNavigate (BrowserInterface browser)

Notify the host application that a new page has started loading.

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