Package | com.distriqt.extension.facebookapi.events |
Class | public class AccountKitEvent |
Inheritance | AccountKitEvent ![]() |
This class details events dispatched relating to the Account Kit
See also
Property | Defined By | ||
---|---|---|---|
accessToken : AccessToken = null
The access token for the logged in account
| AccountKitEvent | ||
account : Account = null
Account Kit account information
| AccountKitEvent | ||
authorisationCode : String = null
The authorization code that can be exchanged for an access token with the app secret
| AccountKitEvent | ||
errorCode : int = -1
If an error occurred this will contain the error code
| AccountKitEvent | ||
errorMessage : String = null
A description of the error if one occurred
| AccountKitEvent |
Method | Defined By | ||
---|---|---|---|
AccountKitEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false)
Constructor
| AccountKitEvent | ||
clone():Event [override] | AccountKitEvent |
Constant | Defined By | ||
---|---|---|---|
ACCOUNTINFO : String = accountKit:accountInfo [static]
Dispatched after a successful call to getAccountInfo
account will contain the details of the logged in account. | AccountKitEvent | ||
ACCOUNTINFO_ERROR : String = accountKit:accountInfo:error [static]
Dispatched after an error occurred during the call to getAccountInfo
| AccountKitEvent | ||
CANCELLED : String = accountKit:cancelled [static]
Dispatched when the user cancelled the login. | AccountKitEvent | ||
ERROR : String = accountKit:error [static]
Dispatched when an error occurred. | AccountKitEvent | ||
LOGIN_WITH_ACCESSTOKEN : String = accountKit:login:accessToken [static]
Dispatched when the login succeeded and returned an access token. | AccountKitEvent | ||
LOGIN_WITH_AUTHORISATIONCODE : String = accountKit:login:authorisationCode [static]
Dispatched when the login succeeded and returned an authorisation code. | AccountKitEvent | ||
SETUP_COMPLETE : String = accountKit:setupComplete [static]
Dispatched when Account Kit is initialised and ready to be used. | AccountKitEvent |
accessToken | property |
public var accessToken:AccessToken = null
The access token for the logged in account
account | property |
public var account:Account = null
Account Kit account information
authorisationCode | property |
public var authorisationCode:String = null
The authorization code that can be exchanged for an access token with the app secret
errorCode | property |
public var errorCode:int = -1
If an error occurred this will contain the error code
errorMessage | property |
public var errorMessage:String = null
A description of the error if one occurred
AccountKitEvent | () | Constructor |
public function AccountKitEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false)
Constructor
Parameterstype:String | |
bubbles:Boolean (default = false )
| |
cancelable:Boolean (default = false )
|
clone | () | method |
override public function clone():Event
ReturnsEvent |
ACCOUNTINFO | Constant |
public static const ACCOUNTINFO:String = accountKit:accountInfo
Dispatched after a successful call to getAccountInfo
account
will contain the details of the logged in account.
See also
ACCOUNTINFO_ERROR | Constant |
public static const ACCOUNTINFO_ERROR:String = accountKit:accountInfo:error
Dispatched after an error occurred during the call to getAccountInfo
See also
CANCELLED | Constant |
public static const CANCELLED:String = accountKit:cancelled
Dispatched when the user cancelled the login.
ERROR | Constant |
public static const ERROR:String = accountKit:error
Dispatched when an error occurred.
errorCode
and errorMessage
will contain details on the
error that occurred.
LOGIN_WITH_ACCESSTOKEN | Constant |
public static const LOGIN_WITH_ACCESSTOKEN:String = accountKit:login:accessToken
Dispatched when the login succeeded and returned an access token.
accessToken
will contain the returned token.
LOGIN_WITH_AUTHORISATIONCODE | Constant |
public static const LOGIN_WITH_AUTHORISATIONCODE:String = accountKit:login:authorisationCode
Dispatched when the login succeeded and returned an authorisation code.
authorisationCode
will contain the returned code.
SETUP_COMPLETE | Constant |
public static const SETUP_COMPLETE:String = accountKit:setupComplete
Dispatched when Account Kit is initialised and ready to be used.
See also