apidocs / com.nimmsta.core.android.bluetooth / HighPriorityHandler / <init>

<init>

HighPriorityHandler(context: Context)

This class manages the compatbility with "High Priority". High Priority is a mode of Android where you can call mBluetoothGatt?.requestConnectionPriority(CONNECTION_PRIORITY_HIGH). On some devices this leads to loss of connection, on others it improves the performance roughly 50%.

This class manages a manual and automatic list of High Priority devices. Currently we always try High prio unless a device is blacklisted. For whitelisted devices we will always try high priority and assume if a connection loss occurres due to status=34 that it is a different problem.