Code example for NetworkInfo

Methods: getSubtypeName, getTypeName, isConnected