Package | com.distriqt.extension.googleidentity.events |
Class | public class GoogleIdentityEvent |
Inheritance | GoogleIdentityEvent flash.events.Event |
Property | Defined By | ||
---|---|---|---|
error : String
A description of the error
| GoogleIdentityEvent | ||
errorCode : int
The error code
| GoogleIdentityEvent | ||
user : GoogleUser
The Google user
| GoogleIdentityEvent |
Method | Defined By | ||
---|---|---|---|
GoogleIdentityEvent(type:String, user:GoogleUser, error:String = null, errorCode:int = -1, bubbles:Boolean = false, cancelable:Boolean = false)
Constructor
| GoogleIdentityEvent | ||
clone():Event [override] | GoogleIdentityEvent |
Constant | Defined By | ||
---|---|---|---|
DISCONNECT : String = googleidentity:disconnect [static]
Dispatched when the user has been disconnected from this application. | GoogleIdentityEvent | ||
ERROR : String = googleidentity:error [static]
An error occured
error and errorCode will contain details of the
error that occurred. | GoogleIdentityEvent | ||
SETUP_COMPLETE : String = googleidentity:setupcomplete Deprecated: setup is now synchronous. This will still be dispatched though if you wish to keep existing code. [static]
Dispatched when setup is complete. | GoogleIdentityEvent | ||
SIGN_IN : String = googleidentity:signin [static]
Dispatched when sign in completes. | GoogleIdentityEvent | ||
SIGN_OUT : String = googleidentity:signout [static]
Dispatched when the user has been signed out. | GoogleIdentityEvent | ||
TOKEN_FAILED : String = googleidentity:token:failed [static]
Dispatched when the tokens failed to be retrieved or refreshed. | GoogleIdentityEvent | ||
TOKEN_UPDATED : String = googleidentity:token:updated [static]
Dispatched when a call to getToken has completed successfully
The access and id tokens in the user object will now be valid. | GoogleIdentityEvent |
error | property |
public var error:String
A description of the error
errorCode | property |
public var errorCode:int
The error code
user | property |
public var user:GoogleUser
The Google user
GoogleIdentityEvent | () | Constructor |
public function GoogleIdentityEvent(type:String, user:GoogleUser, error:String = null, errorCode:int = -1, bubbles:Boolean = false, cancelable:Boolean = false)
Constructor
Parameterstype:String | |
user:GoogleUser | |
error:String (default = null )
| |
errorCode:int (default = -1 )
| |
bubbles:Boolean (default = false )
| |
cancelable:Boolean (default = false )
|
clone | () | method |
override public function clone():Event
ReturnsEvent |
DISCONNECT | Constant |
public static const DISCONNECT:String = googleidentity:disconnect
Dispatched when the user has been disconnected from this application.
ERROR | Constant |
public static const ERROR:String = googleidentity:error
An error occured
error
and errorCode
will contain details of the
error that occurred.
- SIGN_IN_CANCELLED [12501]: The sign in was cancelled by the user. i.e. user cancelled some of the sign in resolutions, e.g. account picking or OAuth consent. - SIGN_IN_FAILED [12500]: The sign in attempt didn't succeed with the current account. Unlike SIGN_IN_REQUIRED. when seeing this error code, there is nothing user can do to recover from the sign in failure. - SIGN_IN_REQUIRED [4]: The client attempted to connect to the service but the user is not signed in. - INTERNAL_ERROR [8]: An internal error occurred. Retrying should resolve the problem. - INVALID_ACCOUNT [5]: The client attempted to connect to the service with an invalid account name specified. - NETWORK_ERROR [7]: A network error occurred. Retrying should resolve the problem.
SETUP_COMPLETE | Constant |
public static const SETUP_COMPLETE:String = googleidentity:setupcomplete
Dispatched when setup
is complete.
You should wait for this event before attempting any other functionality.
SIGN_IN | Constant |
public static const SIGN_IN:String = googleidentity:signin
Dispatched when sign in completes.
user
will contain a valid GoogleUser
object.
At this point the access and id tokens may not be valid. If you
are planning on using them you should now call getToken
and listen for the completion event.
SIGN_OUT | Constant |
public static const SIGN_OUT:String = googleidentity:signout
Dispatched when the user has been signed out.
TOKEN_FAILED | Constant |
public static const TOKEN_FAILED:String = googleidentity:token:failed
Dispatched when the tokens failed to be retrieved or refreshed.
TOKEN_UPDATED | Constant |
public static const TOKEN_UPDATED:String = googleidentity:token:updated
Dispatched when a call to getToken
has completed successfully
The access and id tokens in the user object will now be valid.