Code example for NetworkInfo

Methods: getExtraInfo, getReason, isConnected