Code example for NetworkInfo

Methods: getDetailedState, getReason, getSubtypeName, getType, getTypeName, isAvailable, isConnected