Package | com.distriqt.extension.adverts.events |
Class | public class RewardedVideoAdEvent |
Inheritance | RewardedVideoAdEvent 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. | RewardedVideoAdEvent | ||
errorMessage : String | RewardedVideoAdEvent | ||
rewardAmount : int = 0
the amount of credit for a REWARD event
| RewardedVideoAdEvent | ||
rewardType : String
the type of the credit for a REWARD event
| RewardedVideoAdEvent |
Method | Defined By | ||
---|---|---|---|
RewardedVideoAdEvent(type:String, rewardAmount:int = 0, rewardType:String, errorCode:int = -1, errorMessage:String, bubbles:Boolean = false, cancelable:Boolean = false) | RewardedVideoAdEvent | ||
clone():Event [override] | RewardedVideoAdEvent |
Constant | Defined By | ||
---|---|---|---|
ERROR : String = rewardedvideoad:error [static]
Dispatched if the ad failed to load. | RewardedVideoAdEvent | ||
LOADED : String = rewardedvideoad:loaded [static]
This event is dispatched when a rewarded video ad is loaded. | RewardedVideoAdEvent | ||
REWARD : String = rewardedvideoad:reward [static]
Called when a rewarded video ad has triggered a reward. | RewardedVideoAdEvent |
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
errorMessage | property |
public var errorMessage:String
rewardAmount | property |
public var rewardAmount:int = 0
the amount of credit for a REWARD event
rewardType | property |
public var rewardType:String
the type of the credit for a REWARD event
RewardedVideoAdEvent | () | Constructor |
public function RewardedVideoAdEvent(type:String, rewardAmount:int = 0, rewardType:String, errorCode:int = -1, errorMessage:String, bubbles:Boolean = false, cancelable:Boolean = false)
type:String | |
rewardAmount:int (default = 0 )
| |
rewardType:String | |
errorCode:int (default = -1 )
| |
errorMessage:String | |
bubbles:Boolean (default = false )
| |
cancelable:Boolean (default = false )
|
clone | () | method |
override public function clone():Event
ReturnsEvent |
ERROR | Constant |
public static const ERROR:String = rewardedvideoad:error
Dispatched if the ad failed to load.
LOADED | Constant |
public static const LOADED:String = rewardedvideoad:loaded
This event is dispatched when a rewarded video ad is loaded.
REWARD | Constant |
public static const REWARD:String = rewardedvideoad:reward
Called when a rewarded video ad has triggered a reward. The app is responsible for crediting the user with the reward.