com.applovin.adview.AdViewController |
This interface is deprecated.
- This is for internal use only and will be removed in a later SDK version.
This interface represents a controller for an Ad view. The controller is responsible for handling all view operations.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract void |
contractAd()
This method is used to contract an ad expanded with @link{expandAd()} back.
| ||||||||||
abstract void |
destroy()
Cleanup view's resources
| ||||||||||
abstract void |
expandAd()
This method is used to expand current ad to full-screen.
| ||||||||||
abstract AppLovinAdSize |
getSize()
Get current ad size
| ||||||||||
abstract String |
getZoneId()
Get current zone
| ||||||||||
abstract void |
initializeAdView(AppLovinAdView parentView, Context context, AppLovinAdSize size, String zoneId, AppLovinSdk sdk, AttributeSet viewAttributes)
Initialize the controller using specified parameters
| ||||||||||
abstract boolean |
isAdReadyToDisplay()
Check if an ad is currently preloaded and ready to be displayed.
| ||||||||||
abstract boolean |
isAutoDestroy()
Check auto-destroy logic.
| ||||||||||
abstract void |
loadNextAd()
Start loading next advertisement.
| ||||||||||
abstract void |
pause()
Pause and clean current ad
| ||||||||||
abstract void |
renderAd(AppLovinAd ad)
Render specified ad.
| ||||||||||
abstract void |
renderAd(AppLovinAd ad, String placement)
This method is deprecated.
Placements have been deprecated and will be removed in a future SDK version. Please configure zones from the UI and use them instead.
| ||||||||||
abstract void |
resume()
Resume rendering of the current ad
| ||||||||||
abstract void |
setAdClickListener(AppLovinAdClickListener callback)
Set a callback that would be notified of ad click events.
| ||||||||||
abstract void |
setAdDisplayListener(AppLovinAdDisplayListener callback)
Set a callback that would be notified of ad display events.
| ||||||||||
abstract void |
setAdLoadListener(AppLovinAdLoadListener callback)
Set a callback that would be notified of ad loading events.
| ||||||||||
abstract void |
setAdVideoPlaybackListener(AppLovinAdVideoPlaybackListener callback)
Set a callback that may be notified of video playback events, if and only if the ad contains a video.
| ||||||||||
abstract void |
setAdViewEventListener(AppLovinAdViewEventListener callback)
Set a callback that would be notified of ad view events.
| ||||||||||
abstract void |
setAutoDestroy(boolean isAutoDestroy)
True if the view should be destroyed automatically on when detached from the window
|
This method is used to contract an ad expanded with @link{expandAd()} back.
Cleanup view's resources
This method is used to expand current ad to full-screen.
Get current zone
Initialize the controller using specified parameters
parentView | Parent ad view. Must not be null. |
---|---|
context | Parent context. Must be an Activity. Must not be null. |
size | Desired ad size. May be null. |
zoneId | Desired zone id. May be null. |
sdk | SDK to use. May be null. |
viewAttributes | View attributes. May be null. |
Check if an ad is currently preloaded and ready to be displayed.
Check auto-destroy logic.
Start loading next advertisement. This method will return immediately. An advertisement will be rendered by this view when available.
Pause and clean current ad
Render specified ad.
ad | Ad to render. Must not be null. |
---|
This method is deprecated.
Placements have been deprecated and will be removed in a future SDK version. Please configure zones from the UI and use them instead.
Render specified ad.
ad | Ad to render. Must not be null. |
---|---|
placement | Placement name. |
Resume rendering of the current ad
Set a callback that would be notified of ad click events.
callback | A callback to be notified of ad click events. |
---|
Set a callback that would be notified of ad display events. These include add displayed and ad hidden.
callback | A callback to be notified of ad loading events. |
---|
Set a callback that would be notified of ad loading events. These include add loaded and ad failed to load events
callback | A callback to be notified of ad loading events. |
---|
Set a callback that may be notified of video playback events, if and only if the ad contains a video.
callback | A callback to be notified of video events. |
---|
Set a callback that would be notified of ad view events.
callback | A callback to be notified of ad view events. |
---|
True if the view should be destroyed automatically on when detached from the window
isAutoDestroy | True of the view should be destroyed automatically when detached from the window. |
---|