Packagecom.distriqt.extension.pushnotifications.events
Classpublic class RegistrationEvent
InheritanceRegistrationEvent Inheritance flash.events.Event

Fired when an event has occurred in the extension regarding registration.



Public Properties
 PropertyDefined By
  data : String
The data value attached to this event.
RegistrationEvent
  errorCode : int
RegistrationEvent
Public Methods
 MethodDefined By
  
RegistrationEvent(type:String, data:String, errorCode:int = 0, bubbles:Boolean = false, cancelable:Boolean = true)
Constructor
RegistrationEvent
  
clone():Event
[override]
RegistrationEvent
Public Constants
 ConstantDefined By
  CHANGED : String = registration:changed
[static] Dispatched on successful registration with the server and whenever the registration token changes.
RegistrationEvent
  ERROR : String = registration:error
[static] An error has occurred The data field will contain more information about the error that occurred Android additional errors: SERVICE_NOT_AVAILABLE: The device can't read the response, or there was a 500/503 from the server that can be retried later.
RegistrationEvent
  REGISTER_FAILED : String = registration:register:failed
[static] Dispatched when the registration process fails.
RegistrationEvent
  REGISTERING : String = registration:registering
[static] This event is dispatched when the service is attempting to register
RegistrationEvent
  REGISTER_SUCCESS : String = registration:register:success
[static] Dispatched on successful registration with the server The call to getDeviceToken will now return a valid registration id.
RegistrationEvent
  UNREGISTERED : String = registration:unregistered
[static] Android only Dispatched when the service has unregistered from the server
RegistrationEvent
Property Detail
dataproperty
public var data:String

The data value attached to this event.

In the case of an ERROR this contains additional information about the error

Other events vary

See also

errorCodeproperty 
public var errorCode:int

Constructor Detail
RegistrationEvent()Constructor
public function RegistrationEvent(type:String, data:String, errorCode:int = 0, bubbles:Boolean = false, cancelable:Boolean = true)

Constructor

Parameters
type:String
 
data:String
 
errorCode:int (default = 0)
 
bubbles:Boolean (default = false)
 
cancelable:Boolean (default = true)
Method Detail
clone()method
override public function clone():Event

Returns
Event
Constant Detail
CHANGEDConstant
public static const CHANGED:String = registration:changed

Dispatched on successful registration with the server and whenever the registration token changes.

The call to getDeviceToken will now return a valid registration id.

ERRORConstant 
public static const ERROR:String = registration:error

An error has occurred

The data field will contain more information about the error that occurred

Android additional errors:

iOS additional errors:

REGISTER_FAILEDConstant 
public static const REGISTER_FAILED:String = registration:register:failed

Dispatched when the registration process fails. This could be due to connection issues or an issue with the server at the time of connection.

REGISTER_SUCCESSConstant 
public static const REGISTER_SUCCESS:String = registration:register:success

Dispatched on successful registration with the server

The call to getDeviceToken will now return a valid registration id.

REGISTERINGConstant 
public static const REGISTERING:String = registration:registering

This event is dispatched when the service is attempting to register

UNREGISTEREDConstant 
public static const UNREGISTERED:String = registration:unregistered

Android only

Dispatched when the service has unregistered from the server