Code example for NetworkInfo

Methods: getSubtypeName, getType, isConnected