to top
Datalogic APIs
public final enum

CaptivePortalPolicy

extends Enum<E extends Enum<E>>
java.lang.Object
   ↳ java.lang.Enum<E extends java.lang.Enum<E>>
     ↳ com.datalogic.device.configuration.CaptivePortalPolicy

Class Overview

Enum CaptivePortalPolicy defines the behaviour of the device in case of connecting to a public Wi-Fi with a captive portal interface. In particular, selecting the desired mode, the user can be prompted to authenticate, to be allowed or disallowed to connect to networks which requiring authentication through a captive portal.

Summary

Enum Values
CaptivePortalPolicy  DISCONNECTED  User not prompted, Wi-Fi disconnected, no internet access. 
CaptivePortalPolicy  NO_INTERNET  User not prompted, Wi-Fi connected, no internet access. 
CaptivePortalPolicy  USER_PROMPTED  User prompted, Wi-Fi connected, internet access. 
Public Methods
static CaptivePortalPolicy fromInt(int n)
Retrieves the corresponding CaptivePortalPolicy value, from a valid integer.
int toInt()
Converts the CaptivePortalPolicy to its integer corresponding value.
static CaptivePortalPolicy valueOf(String name)
final static CaptivePortalPolicy[] values()
[Expand]
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum Values

public static final CaptivePortalPolicy DISCONNECTED

Added in revision 40

User not prompted, Wi-Fi disconnected, no internet access.

In particular, when a network requiring an authentication through the captive portal, the user is not prompted to authenticate into the captive portal page. Moreover, the device automatically disconnects from that network, so the user is not able to access to internet.

public static final CaptivePortalPolicy NO_INTERNET

Added in revision 40

User not prompted, Wi-Fi connected, no internet access.

In particular, when a network requiring an authentication through the captive portal, the user is not prompted to authenticate into the captive portal page. The device connects to that network, but the user can't access to internet.

public static final CaptivePortalPolicy USER_PROMPTED

Added in revision 40

User prompted, Wi-Fi connected, internet access.

In particular, when a network requiring an authentication through the captive portal, the user is prompted to authenticate into the captive portal page. The device connects to that network and the user is allowed to access to internet.

Public Methods

public static CaptivePortalPolicy fromInt (int n)

Added in revision 40

Retrieves the corresponding CaptivePortalPolicy value, from a valid integer.

Parameters
n int
Returns
  • CaptivePortalPolicy the corresponding one.

public int toInt ()

Added in revision 40

Converts the CaptivePortalPolicy to its integer corresponding value.

Returns
  • int

public static CaptivePortalPolicy valueOf (String name)

Added in revision 40

public static final CaptivePortalPolicy[] values ()

Added in revision 40