Code example for NetworkInfo

Methods: getSubtype, getType, isAvailable