com.sponsorpay.sdk.android.publisher
Interface SPOfferBannerListener


public interface SPOfferBannerListener

Interface to be implemented by listeners notified of the results of a SponsorPay Offer Banner request.


Method Summary
 void onSPOfferBannerAvailable(OfferBanner banner)
          Invoked when an available banner has been returned by the back end.
 void onSPOfferBannerNotAvailable(OfferBannerRequest request)
          Invoked when the back end cannot provide a banner for this request.
 void onSPOfferBannerRequestError(OfferBannerRequest request)
          Invoked when the request results in a local error, usually due to a problem connecting to the network.
 

Method Detail

onSPOfferBannerAvailable

void onSPOfferBannerAvailable(OfferBanner banner)
Invoked when an available banner has been returned by the back end.

Parameters:
banner - The banner data returned by the server, enclosed in an OfferBanner instance. Call OfferBanner#getBannerView(android.app.Activity) to get a banner view which can be added to a view hierarchy.

onSPOfferBannerNotAvailable

void onSPOfferBannerNotAvailable(OfferBannerRequest request)
Invoked when the back end cannot provide a banner for this request.

Parameters:
request - The OfferBannerRequest instance which sent the request.

onSPOfferBannerRequestError

void onSPOfferBannerRequestError(OfferBannerRequest request)
Invoked when the request results in a local error, usually due to a problem connecting to the network.

Parameters:
request - The OfferBannerRequest instance which sent the request. Use OfferBannerRequest.getRequestException() to determine exactly the cause of the error.