Package | com.distriqt.extension.adverts.events |
Class | public class AdViewEvent |
Inheritance | AdViewEvent flash.events.Event |
Property | Defined By | ||
---|---|---|---|
errorCode : int = -1
The error code is usually ERROR_CODE_INTERNAL_ERROR, ERROR_CODE_INVALID_REQUEST, ERROR_CODE_NETWORK_ERROR, or ERROR_CODE_NO_FILL. | AdViewEvent |
Method | Defined By | ||
---|---|---|---|
AdViewEvent(type:String, errorCode:int = -1, bubbles:Boolean = false, cancelable:Boolean = false) | AdViewEvent | ||
clone():Event [override] | AdViewEvent |
Constant | Defined By | ||
---|---|---|---|
CLOSED : String = adview:closed [static]
When a user returns to the app after viewing an ad's destination URL, this event is dispatched. | AdViewEvent | ||
ERROR : String = adview:error [static]
Dispatched if the ad failed to load. | AdViewEvent | ||
LOADED : String = adview:loaded [static]
This event is dispatched when an ad has finished loading. | AdViewEvent | ||
OPENED : String = adview:opened [static]
This event is dispatched when an ad opens an overlay that covers the screen.. | AdViewEvent |
errorCode | property |
public var errorCode:int = -1
The error code is usually ERROR_CODE_INTERNAL_ERROR, ERROR_CODE_INVALID_REQUEST, ERROR_CODE_NETWORK_ERROR, or ERROR_CODE_NO_FILL.
See also
AdViewEvent | () | Constructor |
public function AdViewEvent(type:String, errorCode:int = -1, bubbles:Boolean = false, cancelable:Boolean = false)
type:String | |
errorCode:int (default = -1 )
| |
bubbles:Boolean (default = false )
| |
cancelable:Boolean (default = false )
|
clone | () | method |
override public function clone():Event
ReturnsEvent |
CLOSED | Constant |
public static const CLOSED:String = adview:closed
When a user returns to the app after viewing an ad's destination URL, this event is dispatched. Your app can use it to resume suspended activities or perform any other work necessary to make itself ready for interaction.
ERROR | Constant |
public static const ERROR:String = adview:error
Dispatched if the ad failed to load.
LOADED | Constant |
public static const LOADED:String = adview:loaded
This event is dispatched when an ad has finished loading.
If you want to delay displaying an ad until you're sure an ad will be loaded you should wait for this event before adding the view.
OPENED | Constant |
public static const OPENED:String = adview:opened
This event is dispatched when an ad opens an overlay that covers the screen..