public final class WalledGardenInternetObservingStrategy
extends java.lang.Object
This strategy takes care of captive portals / walled-garden internet scenarios
by using Android team's solution (as seen in android.net.wifi.WifiWatchdogStateMachine)
This strategy uses HttpURLConnection.HTTP_NO_CONTENT (Status-Code 204) as default check against given endpoint.
| Modifier and Type | Class and Description |
|---|---|
static class |
WalledGardenInternetObservingStrategy.Builder
Build a new
WalledGardenInternetObservingStrategy. |
| Modifier and Type | Method and Description |
|---|---|
static WalledGardenInternetObservingStrategy.Builder |
builder() |
static WalledGardenInternetObservingStrategy |
create() |
io.reactivex.Observable<java.lang.Boolean> |
observe()
Base observing implementation for all internet observing stategies.
|
@NonNull public static WalledGardenInternetObservingStrategy create()
@NonNull public static WalledGardenInternetObservingStrategy.Builder builder()
public io.reactivex.Observable<java.lang.Boolean> observe()
observe in interface ObservingStrategy<java.lang.Boolean>