Code example for NetworkInfo

Methods: getType, isAvailable, isConnected, isConnectedOrConnecting, isRoaming