to top
Datalogic APIs
public final enum

BTPairingPolicy

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

Class Overview

Enum BTPairingPolicy defines the policies for Bluetooth pairing through the property BT_PAIRING_POLICY.

Summary

Enum Values
BTPairingPolicy  SILENT  No user confirmation is required for completing the pairing. 
BTPairingPolicy  SIMPLE  Only a single confirmation is required by the user during the pairing. 
BTPairingPolicy  STANDARD  Android standard user experience for bluetooth pairing. 
BTPairingPolicy  UNKNOWN  Unknown paring policy. 
Public Methods
static BTPairingPolicy fromInt(int n)
Retrieves the corresponding BTPairingPolicy value, from a valid integer.
int toInt()
Converts the BTPairingPolicy enum to its integer representing value.
static BTPairingPolicy valueOf(String name)
final static BTPairingPolicy[] values()
[Expand]
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum Values

public static final BTPairingPolicy SILENT

Added in revision 36

No user confirmation is required for completing the pairing. When this value is selected, the user will never be prompted for pairing a bluetooth device. Only the pre-approved external devices are allowed to be paired. This means that the user will be restricted to pair any other devices via bluetooth. In order to configure the silent pairing procedure, the properties BT_SILENT_PAIRING_WHITELISTING_ENABLE and BT_SILENT_PAIRING_WHITELISTING shall be properly configured.

public static final BTPairingPolicy SIMPLE

Added in revision 36

Only a single confirmation is required by the user during the pairing. When this value is selected, the user will be prompted with a single confirmation for pairing a bluetooth device.

public static final BTPairingPolicy STANDARD

Added in revision 36

Android standard user experience for bluetooth pairing. When this value is selected, the user will be prompted for pairing a bluetooth device according the Android standard procedure.

public static final BTPairingPolicy UNKNOWN

Added in revision 36

Unknown paring policy.

Public Methods

public static BTPairingPolicy fromInt (int n)

Added in revision 36

Retrieves the corresponding BTPairingPolicy value, from a valid integer.

Parameters
n int
Returns
  • Type the corresponding one.

public int toInt ()

Added in revision 36

Converts the BTPairingPolicy enum to its integer representing value.

Returns
  • int

public static BTPairingPolicy valueOf (String name)

Added in revision 36

public static final BTPairingPolicy[] values ()

Added in revision 36