Flash Lite 2.x and 3.0 ActionScript Language Reference

GetNetworkGeneration fscommand2 Command

GetNetworkGeneration

Returns the generation of the current mobile wireless network, such as 2G (second generation of mobile wireless).

Command

Parameters

Value Returned

GetNetworkGeneration

None

-1: Not supported
0: Unknown generation of mobile wireless network
1: 2G
2: 2.5G
3: 3G

Example

The following example shows syntax for returning the generation of the network:

status = fscommand2("GetNetworkGeneration");