public interface

PurchasePathInterface

com.usebutton.sdk.purchasepath.PurchasePathInterface

Class Overview

Button Purchase Path takes regular Merchant URLs to products, categories or just the homepage and replaces them with a fully attributed Button Purchase Path, optimized for both conversion and user experience.

See https://developer.usebutton.com/guides/publishers/android/create-a-button-purchase-path

Summary

Public Methods
abstract void fetch(PurchasePathRequest request, PurchasePathListener listener)
Asynchronously fetch a Purchase Path with a request.
abstract PurchasePathExtension getExtension()
Gets the current Purchase Path extension.
abstract boolean isBrowserEnabled()
Indicates if all urls would be opened in the webview
abstract void setExtension(PurchasePathExtension extension)
Sets a Purchase Path extension.

Public Methods

public abstract void fetch (PurchasePathRequest request, PurchasePathListener listener)

Asynchronously fetch a Purchase Path with a request.

Parameters
request request params including URL and optional publisher reference.
listener callback to be invoked when the request is complete.

public abstract PurchasePathExtension getExtension ()

Gets the current Purchase Path extension.

Returns
  • the current Purchase path extension.

public abstract boolean isBrowserEnabled ()

Indicates if all urls would be opened in the webview

Returns
  • true if enabled

public abstract void setExtension (PurchasePathExtension extension)

Sets a Purchase Path extension.

Note: The passed object will be strongly held by Button.

Parameters
extension this will override any existing extension. Pass null to remove the current extension.