| com.applovin.adview.AdViewController |
This interface represents a controller for an Ad view. The controller is responsible for handling all view operations.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Cleanup view's resources
| |||||||||||
Get current ad size
| |||||||||||
Initialize the controller using specified parameters
| |||||||||||
Check if an ad is currently preloaded and ready to be displayed.
| |||||||||||
Check auto-destory logic.
| |||||||||||
Start loading next advertisement.
| |||||||||||
Pause and clean current ad
| |||||||||||
Render specified ad.
| |||||||||||
Resume rendering of the current ad
| |||||||||||
Set a callback that would be notified of ad click events.
| |||||||||||
Set a callback that would be notified of ad display events.
| |||||||||||
Set a callback that would 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.
| |||||||||||
True if the view should be destroyed automatically on when detached from the window
| |||||||||||
Cleanup view's resources
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. |
| sdk | SDK to use. May be null. |
| viewAttributes | View atrributes. May be null. |
Check if an ad is currently preloaded and ready to be displayed.
Check auto-destory 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. |
|---|
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. |
|---|
True if the view should be destroyed automatically on when detached from the window
| isAutoDestory | True of the view should be destoyed automatically when detached from the window. |
|---|