Packageio.branch.nativeExtensions.branch.events
Classpublic class BranchCreditsEvent
InheritanceBranchCreditsEvent Inheritance flash.events.Event

This Event contains information about credit related calls



Public Properties
 PropertyDefined By
  data : String
For failed events data contains an error message describing the error that occurred.
BranchCreditsEvent
Public Methods
 MethodDefined By
  
BranchCreditsEvent(type:String, data:String, bubbles:Boolean = false, cancelable:Boolean = false)
BranchCreditsEvent
  
clone():Event
[override]
BranchCreditsEvent
Public Constants
 ConstantDefined By
  GET_CREDITS_FAILED : String = getcredits:failed
[static] Dispatched when the getCredits has failed.
BranchCreditsEvent
  GET_CREDITS_HISTORY_FAILED : String = getcreditshistory:failed
[static] Dispatched when the getCreditsHistory has failed.
BranchCreditsEvent
  GET_CREDITS_HISTORY_SUCCESS : String = getcreditshistory:success
[static] Dispatched when the getCreditsHistory method is called and SUCCESS.
BranchCreditsEvent
  GET_CREDITS_SUCCESS : String = getcredits:success
[static] Dispatched when the getCredits method is called and SUCCESS.
BranchCreditsEvent
  REDEEM_REWARDS_FAILED : String = redeemrewards:failed
[static] Dispatched when the redeemRewards has failed.
BranchCreditsEvent
  REDEEM_REWARDS_SUCCESS : String = redeemrewards:success
[static] Dispatched when the redeemRewards has SUCCESS.
BranchCreditsEvent
Property Detail
dataproperty
public var data:String

For failed events data contains an error message describing the error that occurred.

For success events generally this consists of a JSON object that can be converted using JSON.parse( event.data ); It can also contains credits, think to turn them into int! And also the credits history as a stringified array!

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



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

Returns
Event
Constant Detail
GET_CREDITS_FAILEDConstant
public static const GET_CREDITS_FAILED:String = getcredits:failed

Dispatched when the getCredits has failed. See event's data for details.

GET_CREDITS_HISTORY_FAILEDConstant 
public static const GET_CREDITS_HISTORY_FAILED:String = getcreditshistory:failed

Dispatched when the getCreditsHistory has failed. See event's data for details.

GET_CREDITS_HISTORY_SUCCESSConstant 
public static const GET_CREDITS_HISTORY_SUCCESS:String = getcreditshistory:success

Dispatched when the getCreditsHistory method is called and SUCCESS. See event's data for details.

GET_CREDITS_SUCCESSConstant 
public static const GET_CREDITS_SUCCESS:String = getcredits:success

Dispatched when the getCredits method is called and SUCCESS. See event's data for details.

REDEEM_REWARDS_FAILEDConstant 
public static const REDEEM_REWARDS_FAILED:String = redeemrewards:failed

Dispatched when the redeemRewards has failed. See event's data for details.

REDEEM_REWARDS_SUCCESSConstant 
public static const REDEEM_REWARDS_SUCCESS:String = redeemrewards:success

Dispatched when the redeemRewards has SUCCESS.