public class CaptivePortal extends Object implements Parcelable
ConnectivityManager.ACTION_CAPTIVE_PORTAL_SIGN_IN
activity to indicate to the system different outcomes of captive portal sign in. This class is
passed as an extra named ConnectivityManager.EXTRA_CAPTIVE_PORTAL
with the
ACTION_CAPTIVE_PORTAL_SIGN_IN
activity.Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static int |
APP_RETURN_DISMISSED |
static int |
APP_RETURN_UNWANTED |
static int |
APP_RETURN_WANTED_AS_IS |
static Parcelable.Creator<CaptivePortal> |
CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_ELIDE_DUPLICATES, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
CaptivePortal(IBinder binder) |
Modifier and Type | Method and Description |
---|---|
int |
describeContents()
Describe the kinds of special objects contained in this Parcelable
instance's marshaled representation.
|
void |
ignoreNetwork()
Indicate to the system that the user does not want to pursue signing in to the
captive portal and the system should continue to prefer other networks
without captive portals for use as the default active data network.
|
void |
reportCaptivePortalDismissed()
Indicate to the system that the captive portal has been
dismissed.
|
void |
useNetwork()
Indicate to the system the user wants to use this network as is, even though
the captive portal is still in place.
|
void |
writeToParcel(Parcel out,
int flags)
Flatten this object in to a Parcel.
|
public static final int APP_RETURN_DISMISSED
public static final int APP_RETURN_UNWANTED
public static final int APP_RETURN_WANTED_AS_IS
public static final Parcelable.Creator<CaptivePortal> CREATOR
public CaptivePortal(IBinder binder)
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
.public void reportCaptivePortalDismissed()
public void ignoreNetwork()
public void useNetwork()