diff options
| author | 2019-03-19 23:02:52 -0700 | |
|---|---|---|
| committer | 2019-03-19 23:02:52 -0700 | |
| commit | 73a4b8e46353314084f0cea29bc773107549b4c9 (patch) | |
| tree | 34f301f03545d8ae62ffd35170eeff0406f1cb54 | |
| parent | 21a06f23e6294c09d24544389c9d90884d929eff (diff) | |
| parent | 72841b4287b9408b5e85fc4bf639acb74462cd3b (diff) | |
Merge "Add documentation for CaptivePortal APP_RETURN_*" am: 31e3f2e734
am: 72841b4287
Change-Id: I1e14b2d2d5f49980601f2e75eeffc992997de3f5
| -rw-r--r-- | core/java/android/net/CaptivePortal.java | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/core/java/android/net/CaptivePortal.java b/core/java/android/net/CaptivePortal.java index 3ab35e1eebf0..ba7323ddbd81 100644 --- a/core/java/android/net/CaptivePortal.java +++ b/core/java/android/net/CaptivePortal.java @@ -29,15 +29,33 @@ import android.os.RemoteException; * {@code ACTION_CAPTIVE_PORTAL_SIGN_IN} activity. */ public class CaptivePortal implements Parcelable { - /** @hide */ + /** + * Response code from the captive portal application, indicating that the portal was dismissed + * and the network should be re-validated. + * @see ICaptivePortal#appResponse(int) + * @see android.net.INetworkMonitor#notifyCaptivePortalAppFinished(int) + * @hide + */ @SystemApi @TestApi public static final int APP_RETURN_DISMISSED = 0; - /** @hide */ + /** + * Response code from the captive portal application, indicating that the user did not login and + * does not want to use the captive portal network. + * @see ICaptivePortal#appResponse(int) + * @see android.net.INetworkMonitor#notifyCaptivePortalAppFinished(int) + * @hide + */ @SystemApi @TestApi public static final int APP_RETURN_UNWANTED = 1; - /** @hide */ + /** + * Response code from the captive portal application, indicating that the user does not wish to + * login but wants to use the captive portal network as-is. + * @see ICaptivePortal#appResponse(int) + * @see android.net.INetworkMonitor#notifyCaptivePortalAppFinished(int) + * @hide + */ @SystemApi @TestApi public static final int APP_RETURN_WANTED_AS_IS = 2; |