FileDocCategorySizeDatePackage
NetworkState.javaAPI DocAndroid 5.1 API2609Thu Mar 12 22:22:10 GMT 2015android.net

NetworkState

public class NetworkState extends Object implements android.os.Parcelable
Snapshot of network state.
hide

Fields Summary
public final NetworkInfo
networkInfo
public final LinkProperties
linkProperties
public final NetworkCapabilities
networkCapabilities
public final Network
network
public final String
subscriberId
public final String
networkId
public static final Creator
CREATOR
Constructors Summary
public NetworkState(NetworkInfo networkInfo, LinkProperties linkProperties, NetworkCapabilities networkCapabilities, Network network, String subscriberId, String networkId)

        this.networkInfo = networkInfo;
        this.linkProperties = linkProperties;
        this.networkCapabilities = networkCapabilities;
        this.network = network;
        this.subscriberId = subscriberId;
        this.networkId = networkId;
    
public NetworkState(android.os.Parcel in)

        networkInfo = in.readParcelable(null);
        linkProperties = in.readParcelable(null);
        networkCapabilities = in.readParcelable(null);
        network = in.readParcelable(null);
        subscriberId = in.readString();
        networkId = in.readString();
    
Methods Summary
public intdescribeContents()

        return 0;
    
public voidwriteToParcel(android.os.Parcel out, int flags)

        out.writeParcelable(networkInfo, flags);
        out.writeParcelable(linkProperties, flags);
        out.writeParcelable(networkCapabilities, flags);
        out.writeParcelable(network, flags);
        out.writeString(subscriberId);
        out.writeString(networkId);