net.rim.blackberry.events.PushTransportReadyEvent

PushTransportReadyEvent

Properties | Methods | Constants


Packagenet.rim.blackberry.events
Classpublic class PushTransportReadyEvent
InheritancePushTransportReadyEvent Inheritance PushServiceEvent Inheritance flash.events.Event

An event when a create channel or destroy channel operation has previously failed with either the PushServiceErrorEvent.PUSH_TRANSPORT_UNAVAILABLE or the PushServiceErrorEvent.PPG_SERVER_ERROR error code and the network, push transport, or the PPG is now back up again (so the operation can be tried again).

IMPORTANT: Check the value of lastFailedOperation to determine whether the last failed operation was a create channel or a destroy channel. This will allow you to determine which operation should be tried again.



Class information:
BlackBerry 10 Version: 10.0.0
Found in:  BlackBerryPushService.ane

See also

net.rim.blackberry.push.PushService



Public Properties

 PropertyDefined By
  lastFailedOperation : uint
[read-only] Gets the last operation that failed.
PushTransportReadyEvent

Public Methods

 MethodDefined By
  
PushTransportReadyEvent(type:String, lastFailedOperation:uint)
Creates a push transport ready event.
PushTransportReadyEvent
  
clone():Event
[override]
PushTransportReadyEvent
  
toString():String
[override]
PushTransportReadyEvent

Public Constants

 ConstantDefined By
  CREATE_CHANNEL : uint = 1
[static] lastFailedOperation will match this constant if the last failed operation is a create channel.
PushTransportReadyEvent
 InheritedCREATE_SESSION_SUCCESS : String = createSessionSuccess
[static] Type for when a create session succeeds.
PushServiceEvent
  DESTROY_CHANNEL : uint = 2
[static] lastFailedOperation will match this constant if the last failed operation is a destroy channel.
PushTransportReadyEvent
 InheritedDESTROY_CHANNEL_SUCCESS : String = destroyChannelSuccess
[static] Type for when a destroy channel succeeds.
PushServiceEvent
  PUSH_TRANSPORT_READY : String = pushTransportReady
[static] Type for when the push transport is ready.
PushTransportReadyEvent
 InheritedREGISTER_TO_LAUNCH_SUCCESS : String = registerToLaunchSuccess
[static] Type for when a register to launch succeeds.
PushServiceEvent
 InheritedSIM_CHANGE : String = simChange
[static] Type for when a SIM card change has occurred.
PushServiceEvent
 InheritedUNREGISTER_FROM_LAUNCH_SUCCESS : String = unregisterFromLaunchSuccess
[static] Type for when an unregister from launch succeeds.
PushServiceEvent

Property Detail

lastFailedOperation


lastFailedOperation:uint  [read-only]

Gets the last operation that failed. It will have a value matching one of the uint constants in this class.


Implementation

public function get lastFailedOperation():uint

Constructor Detail

PushTransportReadyEvent()


public function PushTransportReadyEvent(type:String, lastFailedOperation:uint)

Creates a push transport ready event.

Parameters

type:String — The type of the event. See the list of constants in this class for the available types.
lastFailedOperation:uint — The last failed operation. Please see class level ASDoc for details on lastFailedOperation.

Method Detail

clone()


override public function clone():Event

Returns

Event

toString()


override public function toString():String

Returns

String

Constant Detail

CREATE_CHANNEL


public static const CREATE_CHANNEL:uint = 1

lastFailedOperation will match this constant if the last failed operation is a create channel.

DESTROY_CHANNEL


public static const DESTROY_CHANNEL:uint = 2

lastFailedOperation will match this constant if the last failed operation is a destroy channel.

PUSH_TRANSPORT_READY


public static const PUSH_TRANSPORT_READY:String = pushTransportReady

Type for when the push transport is ready.





comments powered by Disqus