Packagecom.distriqt.extension.googleidentity.events
Classpublic class GoogleIdentityEvent
InheritanceGoogleIdentityEvent Inheritance flash.events.Event



Public Properties
 PropertyDefined By
  error : String
A description of the error
GoogleIdentityEvent
  errorCode : int
The error code
GoogleIdentityEvent
  user : GoogleUser
The Google user
GoogleIdentityEvent
Public Methods
 MethodDefined By
  
GoogleIdentityEvent(type:String, user:GoogleUser, error:String = null, errorCode:int = -1, bubbles:Boolean = false, cancelable:Boolean = false)
Constructor
GoogleIdentityEvent
  
clone():Event
[override]
GoogleIdentityEvent
Public Constants
 ConstantDefined 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
Property Detail
errorproperty
public var error:String

A description of the error

errorCodeproperty 
public var errorCode:int

The error code

userproperty 
public var user:GoogleUser

The Google user

Constructor Detail
GoogleIdentityEvent()Constructor
public function GoogleIdentityEvent(type:String, user:GoogleUser, error:String = null, errorCode:int = -1, bubbles:Boolean = false, cancelable:Boolean = false)

Constructor

Parameters
type:String
 
user:GoogleUser
 
error:String (default = null)
 
errorCode:int (default = -1)
 
bubbles:Boolean (default = false)
 
cancelable:Boolean (default = false)
Method Detail
clone()method
override public function clone():Event

Returns
Event
Constant Detail
DISCONNECTConstant
public static const DISCONNECT:String = googleidentity:disconnect

Dispatched when the user has been disconnected from this application.

ERRORConstant 
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_COMPLETEConstant 
public static const SETUP_COMPLETE:String = googleidentity:setupcomplete
Deprecated: setup is now synchronous. This will still be dispatched though if you wish to keep existing code.

Dispatched when setup is complete. You should wait for this event before attempting any other functionality.

SIGN_INConstant 
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_OUTConstant 
public static const SIGN_OUT:String = googleidentity:signout

Dispatched when the user has been signed out.

TOKEN_FAILEDConstant 
public static const TOKEN_FAILED:String = googleidentity:token:failed

Dispatched when the tokens failed to be retrieved or refreshed.

TOKEN_UPDATEDConstant 
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.