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 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
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 )
|
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.
|
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.
|
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:
Property | Value |
---|
activityChange | int value representing the current activity state. |
Fri Jan 1 2016, 01:33 PM -05:00