Code example for NetworkInfo

Methods: getDetailedState, getTypeName