public class

BoostView

extends FrameLayout
java.lang.Object
   ↳ FrameLayout
     ↳ com.usebutton.sdk.boost.BoostView

Class Overview

Boost has been deprecated and will be removed in a future version. (DEPRECATED since 6.30.0)

Summary

Nested Classes
interface BoostView.Listener Listener that is invoked when a user interacts with a BoostView  
interface BoostView.RenderListener Render callback interface invoked on completion. 
Public Constructors
BoostView(Context context)
BoostView(Context context, AttributeSet attrs)
BoostView(Context context, AttributeSet attrs, int defStyleAttr)
BoostView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)
Public Methods
boolean callOnClick()
boolean performClick()
void render(BoostResponse boostResponse, BoostView.RenderListener renderListener)
Renders a Boost response in the Boost view
void render(BoostResponse boostResponse)
Renders a Boost response in the Boost view
void setListener(BoostView.Listener listener)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public BoostView (Context context)

public BoostView (Context context, AttributeSet attrs)

public BoostView (Context context, AttributeSet attrs, int defStyleAttr)

public BoostView (Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)

Public Methods

public boolean callOnClick ()

public boolean performClick ()

public void render (BoostResponse boostResponse, BoostView.RenderListener renderListener)

Renders a Boost response in the Boost view

Parameters
boostResponse The response of fetching a BoostRequest
renderListener Called upon success or Boost view load error

public void render (BoostResponse boostResponse)

Renders a Boost response in the Boost view

Parameters
boostResponse The response of fetching a BoostRequest

public void setListener (BoostView.Listener listener)

Parameters
listener Nullable listener that implements the BoostView.Listener interface. When set, receives a PurchasePathRequest that the developer is expected to fetch and, upon a successful response, start. If left null, the fetching and starting will be handled automatically by the Button SDK