Package | io.branch.nativeExtensions.branch.events |
Class | public class BranchCreditsEvent |
Inheritance | BranchCreditsEvent flash.events.Event |
Property | Defined By | ||
---|---|---|---|
data : String
For failed events data contains an error message describing the error that occurred. | BranchCreditsEvent |
Method | Defined By | ||
---|---|---|---|
BranchCreditsEvent(type:String, data:String, bubbles:Boolean = false, cancelable:Boolean = false) | BranchCreditsEvent | ||
clone():Event [override] | BranchCreditsEvent |
Constant | Defined 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 |
data | property |
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!
BranchCreditsEvent | () | Constructor |
public function BranchCreditsEvent(type:String, data:String, bubbles:Boolean = false, cancelable:Boolean = false)
type:String | |
data:String | |
bubbles:Boolean (default = false )
| |
cancelable:Boolean (default = false )
|
clone | () | method |
override public function clone():Event
ReturnsEvent |
GET_CREDITS_FAILED | Constant |
public static const GET_CREDITS_FAILED:String = getcredits:failed
Dispatched when the getCredits
has failed. See event's data
for details.
GET_CREDITS_HISTORY_FAILED | Constant |
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_SUCCESS | Constant |
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_SUCCESS | Constant |
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_FAILED | Constant |
public static const REDEEM_REWARDS_FAILED:String = redeemrewards:failed
Dispatched when the redeemRewards
has failed. See event's data
for details.
REDEEM_REWARDS_SUCCESS | Constant |
public static const REDEEM_REWARDS_SUCCESS:String = redeemrewards:success
Dispatched when the redeemRewards
has SUCCESS.