org.fourthline.cling.android
Class NetworkUtils
java.lang.Object
org.fourthline.cling.android.NetworkUtils
public class NetworkUtils
- extends Object
Android network helpers.
- Author:
- Michael Pujos
Method Summary |
static android.net.NetworkInfo |
getConnectedNetworkInfo(android.content.Context context)
|
static boolean |
isEthernet(android.net.NetworkInfo networkInfo)
|
static boolean |
isMobile(android.net.NetworkInfo networkInfo)
|
static boolean |
isNetworkType(android.net.NetworkInfo networkInfo,
int type)
|
static boolean |
isSSDPAwareNetwork(android.net.NetworkInfo networkInfo)
|
static boolean |
isWifi(android.net.NetworkInfo networkInfo)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NetworkUtils
public NetworkUtils()
getConnectedNetworkInfo
public static android.net.NetworkInfo getConnectedNetworkInfo(android.content.Context context)
isEthernet
public static boolean isEthernet(android.net.NetworkInfo networkInfo)
isWifi
public static boolean isWifi(android.net.NetworkInfo networkInfo)
isMobile
public static boolean isMobile(android.net.NetworkInfo networkInfo)
isNetworkType
public static boolean isNetworkType(android.net.NetworkInfo networkInfo,
int type)
isSSDPAwareNetwork
public static boolean isSSDPAwareNetwork(android.net.NetworkInfo networkInfo)
Copyright © 2013 4th Line GmbH, Switzerland. All Rights Reserved.