Package | com.vungle.extensions.events |
Class | public class VungleEvent |
Inheritance | VungleEvent ![]() |
Property | Defined By | ||
---|---|---|---|
isAdPlayable : Boolean
The playability state associated with an AD_PLAYABLE
event. | VungleEvent | ||
isInitialized : Boolean
Filled for AD_INIT event. | VungleEvent | ||
message : String
The message in AD_FAILED, AD_INIT
and AD_LOG events. | VungleEvent | ||
placement : String
The ID of a placement for AD_PLAYABLE,
AD_STARTED, AD_FINISHED and
AD_FAILED events. | VungleEvent | ||
playTime : Number
The time in seconds that the user watched the video. | VungleEvent | ||
wasCallToActionClicked : Boolean
Indicates whether or not the user clicked the download button. | VungleEvent | ||
wasSuccessfulView : Boolean
Indicates that the user watched the ad and should be rewarded (if
this was a rewarded ad). | VungleEvent |
Method | Defined By | ||
---|---|---|---|
VungleEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false) Create New VungleEvent | VungleEvent | ||
clone():Event [override]
| VungleEvent | ||
toString():String [override]
| VungleEvent |
Constant | Defined By | ||
---|---|---|---|
AD_FAILED : String = AD_FAILED [static]
Dispatched when it is unable to play the ad. | VungleEvent | ||
AD_FINISHED : String = AD_FINISHED [static]
Dispatched when an ad has been dismissed. | VungleEvent | ||
AD_INIT : String = AD_INIT [static]
Dispatched when Vungle SDK has finished initialization. | VungleEvent | ||
AD_LOG : String = AD_LOG [static]
Dispatched when a log message is sent by the plugin (iOS only). | VungleEvent | ||
AD_PLAYABLE : String = AD_PLAYABLE [static]
Dispatched when the SDK has an ad ready to be displayed or when,
for some reason, there's no ad available. | VungleEvent | ||
AD_STARTED : String = AD_STARTED [static]
Dispatched when an ad has started. | VungleEvent |
isAdPlayable | property |
public var isAdPlayable:Boolean
The playability state associated with an AD_PLAYABLE
event. If true
, you can now play an ad. If
false
, you cannot yet play an ad (for instance
there is a corrupt ad or the OS wiped the cache). If at the same
time the value of the placement
property is equal to
null
, no ads are playable for any placement.
isInitialized | property |
public var isInitialized:Boolean
Filled for AD_INIT
event. true
means that
the SDK has finished initialization. false
means that
the initialization failed, and message
contains
a description of the problem.
message | property |
public var message:String
The message in AD_FAILED
, AD_INIT
and AD_LOG
events.
placement | property |
public var placement:String
The ID of a placement for AD_PLAYABLE
,
AD_STARTED
, AD_FINISHED
and
AD_FAILED
events. Note that the value of this
property can be null
in some cases.
playTime | property |
public var playTime:Number
The time in seconds that the user watched the video. Used in
AD_FINISHED
event (iOS only, always equal to 0 on
Android).
wasCallToActionClicked | property |
public var wasCallToActionClicked:Boolean
Indicates whether or not the user clicked the download button.
Used in AD_FINISHED
.
wasSuccessfulView | property |
public var wasSuccessfulView:Boolean
Indicates that the user watched the ad and should be rewarded (if
this was a rewarded ad). Used in AD_FINISHED
.
VungleEvent | () | Constructor |
public function VungleEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false)
Create New VungleEvent
Parameterstype:String | |
bubbles:Boolean (default = false )
| |
cancelable:Boolean (default = false )
|
clone | () | method |
override public function clone():Event
Returns
Event |
toString | () | method |
override public function toString():String
Returns
String |
AD_FAILED | Constant |
public static const AD_FAILED:String = AD_FAILED
Dispatched when it is unable to play the ad.
See also
AD_FINISHED | Constant |
public static const AD_FINISHED:String = AD_FINISHED
Dispatched when an ad has been dismissed.
See also
AD_INIT | Constant |
public static const AD_INIT:String = AD_INIT
Dispatched when Vungle SDK has finished initialization.
See also
AD_LOG | Constant |
public static const AD_LOG:String = AD_LOG
Dispatched when a log message is sent by the plugin (iOS only).
See also
AD_PLAYABLE | Constant |
public static const AD_PLAYABLE:String = AD_PLAYABLE
Dispatched when the SDK has an ad ready to be displayed or when, for some reason, there's no ad available.
See also
AD_STARTED | Constant |
public static const AD_STARTED:String = AD_STARTED
Dispatched when an ad has started.
See also