public class InneractiveAdViewUnitController extends com.fyber.inneractive.sdk.flow.InneractiveUnitControllerImpl<InneractiveAdViewEventsListener> implements com.fyber.inneractive.sdk.flow.InneractiveAdSpotImpl.RefreshAdListener, com.fyber.inneractive.sdk.activities.InneractiveFullscreenAdActivity.FullScreenRendererProvider
InneractiveUnitController.AdDisplayError, InneractiveUnitController.EventsListener, InneractiveUnitController.EventsListenerAdapter| Modifier and Type | Field and Description |
|---|---|
static int |
DISABLED_REFRESH_INTERVAL |
protected int |
mAdContentHeight |
protected int |
mAdContentWidth |
| Constructor and Description |
|---|
InneractiveAdViewUnitController() |
InneractiveAdViewUnitController(boolean disableRefresh)
TODO: Find a way that this interface is not exposed for publishers, and only for Heyzap
|
InneractiveAdViewUnitController(int overridenRefreshInterval)
TODO: Find a way that this interface is not exposed for publishers, and only for Heyzap
|
| Modifier and Type | Method and Description |
|---|---|
void |
bindView(android.view.ViewGroup parent)
Open a full screen ad activity, which will be started using the given activity's context
|
boolean |
canRefreshAd()
Called by the Spot, after a response has arrived, in order to check if refresh is valid.
|
void |
destroy()
Call in order to destroy the unit content
|
int |
getAdContentHeight() |
int |
getAdContentWidth() |
com.fyber.inneractive.sdk.interfaces.InneractiveFullscreenAdRenderer |
getFullscreenRenderer() |
InneractiveContentController |
getSelectedContentController()
Returns the selected content controller, if available
|
void |
onAdRefreshed(InneractiveAdSpot adSpot)
Called when the refresh completed succesfully
|
void |
onAdRefreshFailed(InneractiveAdSpot adSpot,
InneractiveErrorCode errorCode)
Called when the refresh failed
|
void |
refreshAd() |
boolean |
supports(InneractiveAdSpot adSpot)
Called by the spot, in order to see if this controller supports its return content
|
boolean |
supportsRefresh()
Called by the Spot, in order to see if the selected controller supports refresh
|
void |
unbindFullscreenRenderer(com.fyber.inneractive.sdk.interfaces.InneractiveFullscreenAdRenderer fullscreenAdRenderer)
For internal use only
|
void |
unbindView(android.view.View view)
Unbind a previously bounded view.
|
public static final int DISABLED_REFRESH_INTERVAL
protected int mAdContentWidth
protected int mAdContentHeight
public InneractiveAdViewUnitController()
public InneractiveAdViewUnitController(int overridenRefreshInterval)
public InneractiveAdViewUnitController(boolean disableRefresh)
public boolean supports(InneractiveAdSpot adSpot)
com.fyber.inneractive.sdk.flow.InneractiveUnitControllerImplsupports in class com.fyber.inneractive.sdk.flow.InneractiveUnitControllerImpl<InneractiveAdViewEventsListener>public boolean supportsRefresh()
com.fyber.inneractive.sdk.flow.InneractiveUnitControllerImplsupportsRefresh in class com.fyber.inneractive.sdk.flow.InneractiveUnitControllerImpl<InneractiveAdViewEventsListener>public com.fyber.inneractive.sdk.interfaces.InneractiveFullscreenAdRenderer getFullscreenRenderer()
getFullscreenRenderer in interface com.fyber.inneractive.sdk.activities.InneractiveFullscreenAdActivity.FullScreenRendererProviderpublic InneractiveContentController getSelectedContentController()
com.fyber.inneractive.sdk.flow.InneractiveUnitControllerImplgetSelectedContentController in interface InneractiveUnitController<InneractiveAdViewEventsListener>getSelectedContentController in class com.fyber.inneractive.sdk.flow.InneractiveUnitControllerImpl<InneractiveAdViewEventsListener>public void destroy()
InneractiveUnitControllerdestroy in interface InneractiveUnitController<InneractiveAdViewEventsListener>destroy in class com.fyber.inneractive.sdk.flow.InneractiveUnitControllerImpl<InneractiveAdViewEventsListener>public void bindView(android.view.ViewGroup parent)
parent - parent view group. The ad view will be added as a childpublic void unbindView(android.view.View view)
view - public void refreshAd()
public void onAdRefreshed(InneractiveAdSpot adSpot)
com.fyber.inneractive.sdk.flow.InneractiveAdSpotImpl.RefreshAdListeneronAdRefreshed in interface com.fyber.inneractive.sdk.flow.InneractiveAdSpotImpl.RefreshAdListenerpublic void onAdRefreshFailed(InneractiveAdSpot adSpot, InneractiveErrorCode errorCode)
com.fyber.inneractive.sdk.flow.InneractiveAdSpotImpl.RefreshAdListeneronAdRefreshFailed in interface com.fyber.inneractive.sdk.flow.InneractiveAdSpotImpl.RefreshAdListenerpublic void unbindFullscreenRenderer(com.fyber.inneractive.sdk.interfaces.InneractiveFullscreenAdRenderer fullscreenAdRenderer)
public boolean canRefreshAd()
com.fyber.inneractive.sdk.flow.InneractiveUnitControllerImplcanRefreshAd in class com.fyber.inneractive.sdk.flow.InneractiveUnitControllerImpl<InneractiveAdViewEventsListener>public int getAdContentWidth()
public int getAdContentHeight()