public class

ImpressionView

extends
java.lang.Object
   ↳
     ↳ com.usebutton.sdk.impression.ImpressionView

Summary

Public Constructors
ImpressionView(Context context)
ImpressionView(Context context, AttributeSet attrs)
ImpressionView(Context context, AttributeSet attrs, int defStyleAttr)
ImpressionView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)
Public Methods
void configureWith(OfferDetails offerDetails)
Configure this ImpressionView with the offer details to be tracked when this view meets the requirements of a Viewable Impression.
CreativeType getCreativeType()
OfferDetails getOfferDetails()
The details of the displayed offer.
String getOfferId()
This method is deprecated. Please retrieve offer details via getOfferDetails().
String getUrl()
This method is deprecated. Please retrieve offer details via getOfferDetails().
float getVisibleRate()
This method is deprecated. Please retrieve offer details via getOfferDetails().
VisibleRateType getVisibleRateType()
This method is deprecated. Please retrieve offer details via getOfferDetails().
abstract void setClipboard(String label, String data)
void setCreativeType(CreativeType creativeType)
abstract void showDebugDetailsDialog(String state, String impressionId, String offerId, String rate, String rateType, String creativeType, String url)
void track(String url, VisibleRateType visibleRateType, float visibleRate)
This method is deprecated. Please configure the impression view via configureWith(OfferDetails).
void track(String url, VisibleRateType visibleRateType, float visibleRate, String offerId)
This method is deprecated. Please configure the impression view via configureWith(OfferDetails).
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ImpressionView (Context context)

public ImpressionView (Context context, AttributeSet attrs)

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

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

Public Methods

public void configureWith (OfferDetails offerDetails)

Configure this ImpressionView with the offer details to be tracked when this view meets the requirements of a Viewable Impression.

Parameters
offerDetails the details of the offer

public CreativeType getCreativeType ()

Returns
  • creative type of the offer associated with this impression view

public OfferDetails getOfferDetails ()

The details of the displayed offer. These details are tracked when this view meets the requirements of a Viewable Impression.

Returns
  • details of the displayed offer

public String getOfferId ()

This method is deprecated.
Please retrieve offer details via getOfferDetails().

Returns
  • Button-provided value that identifies the served offer

public String getUrl ()

This method is deprecated.
Please retrieve offer details via getOfferDetails().

Returns
  • url that is associated with the offer

public float getVisibleRate ()

This method is deprecated.
Please retrieve offer details via getOfferDetails().

Returns
  • The rate visible to the user

public VisibleRateType getVisibleRateType ()

This method is deprecated.
Please retrieve offer details via getOfferDetails().

Returns
  • Type of the visibleRate for the offer that is displayed to the user, either PERCENT, FIXED, or UNKNOWN (default)

public abstract void setClipboard (String label, String data)

public void setCreativeType (CreativeType creativeType)

Parameters
creativeType creative type of the offer associated with this impression view

public abstract void showDebugDetailsDialog (String state, String impressionId, String offerId, String rate, String rateType, String creativeType, String url)

public void track (String url, VisibleRateType visibleRateType, float visibleRate)

This method is deprecated.
Please configure the impression view via configureWith(OfferDetails).

Track the impression view

Parameters
url The new url of the served offer
visibleRateType The new visibleRateType of the served offer
visibleRate The new visibleRate of the served offer

public void track (String url, VisibleRateType visibleRateType, float visibleRate, String offerId)

This method is deprecated.
Please configure the impression view via configureWith(OfferDetails).

Track the impression view

Parameters
url The new url of the served offer
visibleRateType The new visibleRateType of the served offer
visibleRate The new visibleRate of the served offer
offerId The (optional) new offerId of the served offer