public class NetworkMisc extends Object implements Parcelable
Network
. Since this contains PII, it should not be sent outside the
system.Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
boolean |
acceptUnvalidated
Set if the user desires to use this network even if it is unvalidated.
|
boolean |
allowBypass
If the
Network is a VPN, whether apps are allowed to bypass the
VPN. |
static Parcelable.Creator<NetworkMisc> |
CREATOR |
boolean |
explicitlySelected
Set if the network was manually/explicitly connected to by the user either from settings
or a 3rd party app.
|
boolean |
provisioningNotificationDisabled
Set to avoid surfacing the "Sign in to network" notification.
|
String |
subscriberId
For mobile networks, this is the subscriber ID (such as IMSI).
|
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_ELIDE_DUPLICATES, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
NetworkMisc() |
NetworkMisc(NetworkMisc nm) |
Modifier and Type | Method and Description |
---|---|
int |
describeContents()
Describe the kinds of special objects contained in this Parcelable
instance's marshaled representation.
|
void |
writeToParcel(Parcel out,
int flags)
Flatten this object in to a Parcel.
|
public boolean allowBypass
Network
is a VPN, whether apps are allowed to bypass the
VPN. This is set by a VpnService
and used by
ConnectivityManager
when creating a VPN.public boolean explicitlySelected
public boolean acceptUnvalidated
public boolean provisioningNotificationDisabled
public String subscriberId
public static final Parcelable.Creator<NetworkMisc> CREATOR
public NetworkMisc()
public NetworkMisc(NetworkMisc nm)
public int describeContents()
Parcelable
Parcelable.writeToParcel(Parcel, int)
,
the return value of this method must include the
Parcelable.CONTENTS_FILE_DESCRIPTOR
bit.describeContents
in interface Parcelable
Parcelable.CONTENTS_FILE_DESCRIPTOR
public void writeToParcel(Parcel out, int flags)
Parcelable
writeToParcel
in interface Parcelable
out
- The Parcel in which the object should be written.flags
- Additional flags about how the object should be written.
May be 0 or Parcelable.PARCELABLE_WRITE_RETURN_VALUE
.