The connectivity module provides a common abstraction of the functionality responsible for receiving information about the connection type and availability of the network.
Gets the type of connection. Returns a value from the connectivityModule.connectionType enumeration. To use this method on Android you need to have the android.permission.ACCESS_NETWORK_STATE permission added to the AndroidManifest.xml file.