Package | io.branch.nativeExtensions.branch.events |
Class | public class BranchEvent |
Inheritance | BranchEvent flash.events.Event |
Property | Defined By | ||
---|---|---|---|
data : String
For failed events data contains an error message describing the error that occurred. | BranchEvent |
Method | Defined By | ||
---|---|---|---|
BranchEvent(type:String, data:String, bubbles:Boolean = false, cancelable:Boolean = false) | BranchEvent | ||
clone():Event [override] | BranchEvent |
Constant | Defined 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 |
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 );
BranchEvent | () | Constructor |
public function BranchEvent(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_SHORT_URL_FAILED | Constant |
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_SUCCESS | Constant |
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_FAILED | Constant |
public static const INIT_FAILED:String = init:failed
Dispatched when the key init has failed. See event's data
for details.
INIT_SUCCESS | Constant |
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_FAILED | Constant |
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_SUCCESS | Constant |
public static const SET_IDENTITY_SUCCESS:String = setidentity:success
Dispatched when the identity has been successfully set up.