Packagecom.wadedwalker.nativeExtension.telephone.events
Classpublic final class DataActivityEvent
InheritanceDataActivityEvent Inheritance flash.events.Event

Language Version : ActionScript 3.0
Runtime Versions : AIR 2.5

The DataActivityEvent object is used for knowing when data activity on the device has changed. This event will tell you what the current internet activity is over a cellular network.



Public Properties
 PropertyDefined By
  AIR-only activityChange : int
The activity change.
DataActivityEvent
Public Methods
 MethodDefined By
  
AIR-only DataActivityEvent(type:String, activityChange:int, bubbles:Boolean = true, cancelable:Boolean = false)
Creates a DataActivityEvent event.
DataActivityEvent
  
AIR-only clone():Event
[override] Duplicates an instance of a DataActivityEvent class.
DataActivityEvent
  
AIR-only toString():String
[override] Returns a String containing all the properties of the event, DataActivityEvent.
DataActivityEvent
Public Constants
 ConstantDefined By
  AIR-only DATA_ACTIVITY_CHANGE : String = dataActivityChange
[static] The DATA_ACTIVITY_CHANGE constant defines the value of the type property of an dataActivityChange event object.
DataActivityEvent
Property Detail
AIR-only activityChangeproperty
public var activityChange:int

Language Version : ActionScript 3.0
Runtime Versions : AIR 2.5

The activity change. Possible values are DATA_ACTIVITY_NONE, DATA_ACTIVITY_IN, DATA_ACTIVITY_INOUT, DATA_ACTIVITY_OUT, or DATA_ACTIVITY_DORMANT.

See also

Constructor Detail
AIR-only DataActivityEvent()Constructor
public function DataActivityEvent(type:String, activityChange:int, bubbles:Boolean = true, cancelable:Boolean = false)

Language Version : ActionScript 3.0
Runtime Versions : AIR 2.5

Creates a DataActivityEvent event.

Parameters
type:String
 
activityChange:int
 
bubbles:Boolean (default = true)
 
cancelable:Boolean (default = false)
Method Detail
AIR-only clone()method
override public final function clone():Event

Language Version : ActionScript 3.0
Runtime Versions : AIR 2.5

Duplicates an instance of a DataActivityEvent class.

Returns a new DataActivityEvent object that is a copy of the original instance of the DataActivityEvent object. You do not normally call clone(); the EventDispatcher class calls it automatically when you redispatch an event—that is, when you call dispatchEvent(event) from a handler that is handling event.

The new DataActivityEvent object includes all the properties of the original.

Returns
Event — A new DataActivityEvent object that is identical to the original.
AIR-only toString()method 
override public final function toString():String

Language Version : ActionScript 3.0
Runtime Versions : AIR 2.5

Returns a String containing all the properties of the event, DataActivityEvent.

Returns
String — A string containing all the properties of the DataActivityEvent object.
Constant Detail
AIR-only DATA_ACTIVITY_CHANGEConstant
public static const DATA_ACTIVITY_CHANGE:String = dataActivityChange

Language Version : ActionScript 3.0
Runtime Versions : AIR 2.5

The DATA_ACTIVITY_CHANGE constant defines the value of the type property of an dataActivityChange event object.

Listen for changes to the direction of data traffic on the data connection (cellular).

NOTE: Requires Android Permission: READ_PHONE_STATE.

This event has the following property in addition to standard event properties:

PropertyValue
activityChangeint value representing the current activity state.