public abstract class XappAds
extends java.lang.Object
Constructor and Description |
---|
XappAds() |
Modifier and Type | Method and Description |
---|---|
abstract XappAdController |
attach()
Retrieves a XappAdController from a currently running Ad.
|
abstract XappAdController |
attach(FragmentManager fm,
int containerId)
Retrieves a XappAdController from a currently running ad and attaches it to the given View.
|
abstract ListenAdController |
listenForAd(Advertisement ad)
Retrieve a controller which merely only listens for the actions in the provided ad.
|
abstract XappAdController |
loadAd(Advertisement ad)
Preload an ad that will only be audio only.
|
abstract XappAdController |
loadAd(Advertisement ad,
android.content.Context ctx)
Play an interstitial ad as soon as it loaded.
|
abstract XappAdController |
loadAd(Advertisement ad,
FragmentManager fm,
int containerId)
Play an ad inside a Fragment which resides in the provided container.
|
abstract AdRequester |
newRequest()
Begin a new Ad request.
|
public abstract AdRequester newRequest()
public abstract ListenAdController listenForAd(Advertisement ad)
ad
- Ad object to listen for.public abstract XappAdController attach()
public abstract XappAdController attach(FragmentManager fm, int containerId)
fm
- FragmentManager to use to attach the ad.containerId
- Container ID of the View that will hold the ad.public abstract XappAdController loadAd(Advertisement ad, FragmentManager fm, int containerId)
fm
- FragmentManager that handles the Xapp FragmentcontainerId
- ID value of the View that will hold the Fragment.public abstract XappAdController loadAd(Advertisement ad)
XappController.start()
will
play the ad as soon as it is successfully loaded.ad
- Ad to retrieve a controller for.public abstract XappAdController loadAd(Advertisement ad, android.content.Context ctx)
#loadAd(Advertisement, Activity, int)
,
there will not be any result returned.ad
- The ad to play.ctx
- Context which will start the interstitial Activity.