Packagecom.vungle.extensions.events
Classpublic class VungleEvent
InheritanceVungleEvent Inheritance flash.events.Event

VungleEvent



Public Properties
 PropertyDefined 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
Public Methods
 MethodDefined By
  
VungleEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false)
Create New VungleEvent
VungleEvent
  
clone():Event
[override]
VungleEvent
  
toString():String
[override]
VungleEvent
Public Constants
 ConstantDefined 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
Property Detail
isAdPlayableproperty
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.

isInitializedproperty 
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.

messageproperty 
public var message:String

The message in AD_FAILED, AD_INIT and AD_LOG events.

placementproperty 
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.

playTimeproperty 
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).

wasCallToActionClickedproperty 
public var wasCallToActionClicked:Boolean

Indicates whether or not the user clicked the download button. Used in AD_FINISHED.

wasSuccessfulViewproperty 
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.

Constructor Detail
VungleEvent()Constructor
public function VungleEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false)

Create New VungleEvent

Parameters
type:String
 
bubbles:Boolean (default = false)
 
cancelable:Boolean (default = false)
Method Detail
clone()method
override public function clone():Event

Returns
Event
toString()method 
override public function toString():String

Returns
String
Constant Detail
AD_FAILEDConstant
public static const AD_FAILED:String = AD_FAILED

Dispatched when it is unable to play the ad.

See also

AD_FINISHEDConstant 
public static const AD_FINISHED:String = AD_FINISHED

Dispatched when an ad has been dismissed.

See also

AD_INITConstant 
public static const AD_INIT:String = AD_INIT

Dispatched when Vungle SDK has finished initialization.

See also

AD_LOGConstant 
public static const AD_LOG:String = AD_LOG

Dispatched when a log message is sent by the plugin (iOS only).

See also

AD_PLAYABLEConstant 
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_STARTEDConstant 
public static const AD_STARTED:String = AD_STARTED

Dispatched when an ad has started.

See also