requestConnectionPriority
Requests new connection parameters.
Android API does not allow to set custom connection parameters. Instead, predefined connection priorities can be requested. Corresponding values for each priority are may differ between Android versions and devices.
On Android versions prior to Android 8 (Oreo) the updated connection parameters are not returned to the app, therefore the returned value will be ConnectionParameters.Unknown.
Return
The new connection parameters.
Parameters
priority
The new connection priority.
Throws
If the device is not connected.
If connection priority could not be requested.
If BLUETOOTH_CONNECT permission is denied.