Packageio.branch.nativeExtensions.branch.events
Classpublic class BranchEvent
InheritanceBranchEvent Inheritance flash.events.Event



Public Properties
 PropertyDefined By
  data : String
For failed events data contains an error message describing the error that occurred.
BranchEvent
Public Methods
 MethodDefined By
  
BranchEvent(type:String, data:String, bubbles:Boolean = false, cancelable:Boolean = false)
BranchEvent
  
clone():Event
[override]
BranchEvent
Public Constants
 ConstantDefined By
  GET_SHORT_URL_FAILED : String = getshorturl:failed
[static] Dispatched when the getShortUrl has failed.
BranchEvent
  GET_SHORT_URL_SUCCESS : String = getshorturl:success
[static] Dispatched when the short url has been successfully created.
BranchEvent
  INIT_FAILED : String = init:failed
[static] Dispatched when the key init has failed.
BranchEvent
  INIT_SUCCESS : String = init:success
[static] Dispatched when the key has been successfully set up.
BranchEvent
  SET_IDENTITY_FAILED : String = setidentity:failed
[static] Dispatched when the identity set up has failed.
BranchEvent
  SET_IDENTITY_SUCCESS : String = setidentity:success
[static] Dispatched when the identity has been successfully set up.
BranchEvent
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 );

Constructor Detail
BranchEvent()Constructor
public function BranchEvent(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_SHORT_URL_FAILEDConstant
public static const GET_SHORT_URL_FAILED:String = getshorturl:failed

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

GET_SHORT_URL_SUCCESSConstant 
public static const GET_SHORT_URL_SUCCESS:String = getshorturl:success

Dispatched when the short url has been successfully created. See event's data for the result.

INIT_FAILEDConstant 
public static const INIT_FAILED:String = init:failed

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

INIT_SUCCESSConstant 
public static const INIT_SUCCESS:String = init:success

Dispatched when the key has been successfully set up. See event's data for referringParams.

SET_IDENTITY_FAILEDConstant 
public static const SET_IDENTITY_FAILED:String = setidentity:failed

Dispatched when the identity set up has failed. See event's data for details.

SET_IDENTITY_SUCCESSConstant 
public static const SET_IDENTITY_SUCCESS:String = setidentity:success

Dispatched when the identity has been successfully set up.