public class CaptivePortal
extends Object implements Parcelable
| java.lang.Object | |
| android.net.CaptivePortal | |
允许应用程序处理 ACTION_CAPTIVE_PORTAL_SIGN_IN活动的类向系统指示强制门户登录的不同结果。该类作为额外名称 EXTRA_CAPTIVE_PORTAL与 ACTION_CAPTIVE_PORTAL_SIGN_IN活动一起 ACTION_CAPTIVE_PORTAL_SIGN_IN 。
Inherited constants |
|---|
android.os.Parcelable
|
Fields |
|
|---|---|
public static final Creator<CaptivePortal> |
CREATOR |
公共方法(Public methods) |
|
|---|---|
int |
describeContents() 描述此Parcelable实例的封送表示中包含的特殊对象的种类。 |
void |
ignoreNetwork() 向系统表明用户不想继续登录强制门户,系统应该继续偏好其他没有强制门户的网络作为默认活动数据网络。 |
void |
reportCaptivePortalDismissed() 向系统表明强制门户已被解雇。 |
void |
writeToParcel(Parcel out, int flags) 将此对象平铺到一个包裹中。 |
继承方法(Inherited methods) |
|
|---|---|
java.lang.Object
|
|
android.os.Parcelable
|
|
int describeContents ()
描述此Parcelable实例的封送表示中包含的特殊对象的种类。 例如,如果对象将在writeToParcel(Parcel, int)的输出中包含writeToParcel(Parcel, int) ,则此方法的返回值必须包含CONTENTS_FILE_DESCRIPTOR位。
| 返回(Returns) | |
|---|---|
int |
a bitmask indicating the set of special object types marshaled by this Parcelable object instance. |
void ignoreNetwork ()
向系统表明用户不想继续登录强制门户,系统应该继续偏好其他没有强制门户的网络作为默认活动数据网络。 系统不会重新测试强制门户的网络,以避免用户进一步登录网络通知。
void reportCaptivePortalDismissed ()
向系统表明强制门户已被解雇。 作为回应,该框架将重新评估网络的连通性,并可能在此后采取进一步行动。
void writeToParcel (Parcel out, int flags)
将此对象平铺到一个包裹中。
| 参数(Parameters) | |
|---|---|
out |
Parcel: The Parcel in which the object should be written. |
flags |
int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE. |