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.

public static final BTPairingPolicy SIMPLE

Added in revision 36

Only a single confirmation is required by the user during the pairing.

public static final BTPairingPolicy STANDARD

Added in revision 36

Android standard user experience for bluetooth pairing.

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