Code example for NetworkInfo

Methods: isConnected, isRoaming