NetworkStatepublic class NetworkState extends Object implements android.os.ParcelableSnapshot of network state. |
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 int | describeContents()
return 0;
| public void | writeToParcel(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);
|
|