Loading api/current.txt +1 −0 Original line number Original line Diff line number Diff line Loading @@ -18373,6 +18373,7 @@ package android.net { method public void onLinkPropertiesChanged(android.net.Network, android.net.LinkProperties); method public void onLinkPropertiesChanged(android.net.Network, android.net.LinkProperties); method public void onLosing(android.net.Network, int); method public void onLosing(android.net.Network, int); method public void onLost(android.net.Network); method public void onLost(android.net.Network); method public void onPreCheck(android.net.Network); } } public static abstract interface ConnectivityManager.OnNetworkActiveListener { public static abstract interface ConnectivityManager.OnNetworkActiveListener { api/system-current.txt +1 −0 Original line number Original line Diff line number Diff line Loading @@ -19841,6 +19841,7 @@ package android.net { method public void onLinkPropertiesChanged(android.net.Network, android.net.LinkProperties); method public void onLinkPropertiesChanged(android.net.Network, android.net.LinkProperties); method public void onLosing(android.net.Network, int); method public void onLosing(android.net.Network, int); method public void onLost(android.net.Network); method public void onLost(android.net.Network); method public void onPreCheck(android.net.Network); } } public static abstract interface ConnectivityManager.OnNetworkActiveListener { public static abstract interface ConnectivityManager.OnNetworkActiveListener { core/java/android/net/ConnectivityManager.java +12 −4 Original line number Original line Diff line number Diff line Loading @@ -2144,14 +2144,22 @@ public class ConnectivityManager { public static final int CANCELED = 8; public static final int CANCELED = 8; /** /** * @hide * Called when the framework connects to a new network to evaluate whether it satisfies this * Called whenever the framework connects to a network that it may use to * request. If evaluation succeeds, this callback may be followed by an {@link #onAvailable} * satisfy this request * callback. There is no guarantee that this new network will satisfy any requests, or that * the network will stay connected for longer than the time necessary to evaluate it. * <p> * Most applications <b>should not</b> act on this callback, and should instead use * {@link #onAvailable}. This callback is intended for use by applications that can assist * the framework in properly evaluating the network — for example, an application that * can automatically log in to a captive portal without user intervention. * * @param network The {@link Network} of the network that is being evaluated. */ */ public void onPreCheck(Network network) {} public void onPreCheck(Network network) {} /** /** * Called when the framework connects and has declared new network ready for use. * Called when the framework connects and has declared a new network ready for use. * This callback may be called more than once if the {@link Network} that is * This callback may be called more than once if the {@link Network} that is * satisfying the request changes. * satisfying the request changes. * * Loading Loading
api/current.txt +1 −0 Original line number Original line Diff line number Diff line Loading @@ -18373,6 +18373,7 @@ package android.net { method public void onLinkPropertiesChanged(android.net.Network, android.net.LinkProperties); method public void onLinkPropertiesChanged(android.net.Network, android.net.LinkProperties); method public void onLosing(android.net.Network, int); method public void onLosing(android.net.Network, int); method public void onLost(android.net.Network); method public void onLost(android.net.Network); method public void onPreCheck(android.net.Network); } } public static abstract interface ConnectivityManager.OnNetworkActiveListener { public static abstract interface ConnectivityManager.OnNetworkActiveListener {
api/system-current.txt +1 −0 Original line number Original line Diff line number Diff line Loading @@ -19841,6 +19841,7 @@ package android.net { method public void onLinkPropertiesChanged(android.net.Network, android.net.LinkProperties); method public void onLinkPropertiesChanged(android.net.Network, android.net.LinkProperties); method public void onLosing(android.net.Network, int); method public void onLosing(android.net.Network, int); method public void onLost(android.net.Network); method public void onLost(android.net.Network); method public void onPreCheck(android.net.Network); } } public static abstract interface ConnectivityManager.OnNetworkActiveListener { public static abstract interface ConnectivityManager.OnNetworkActiveListener {
core/java/android/net/ConnectivityManager.java +12 −4 Original line number Original line Diff line number Diff line Loading @@ -2144,14 +2144,22 @@ public class ConnectivityManager { public static final int CANCELED = 8; public static final int CANCELED = 8; /** /** * @hide * Called when the framework connects to a new network to evaluate whether it satisfies this * Called whenever the framework connects to a network that it may use to * request. If evaluation succeeds, this callback may be followed by an {@link #onAvailable} * satisfy this request * callback. There is no guarantee that this new network will satisfy any requests, or that * the network will stay connected for longer than the time necessary to evaluate it. * <p> * Most applications <b>should not</b> act on this callback, and should instead use * {@link #onAvailable}. This callback is intended for use by applications that can assist * the framework in properly evaluating the network — for example, an application that * can automatically log in to a captive portal without user intervention. * * @param network The {@link Network} of the network that is being evaluated. */ */ public void onPreCheck(Network network) {} public void onPreCheck(Network network) {} /** /** * Called when the framework connects and has declared new network ready for use. * Called when the framework connects and has declared a new network ready for use. * This callback may be called more than once if the {@link Network} that is * This callback may be called more than once if the {@link Network} that is * satisfying the request changes. * satisfying the request changes. * * Loading