Skip to content

Commit

Permalink
Updated RxBleClient#getBondedDevices() javadoc. (#804)
Browse files Browse the repository at this point in the history
Mentioning new requirements for Android 12 / API >= 31.
  • Loading branch information
dariuszseweryn authored Jul 9, 2022
1 parent ef2db2d commit fb8991b
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,11 @@ public static void updateLogOptions(LogOptions logOptions) {
* If Bluetooth state is not STATE_ON, this API will return an empty set. After turning on Bluetooth, wait for ACTION_STATE_CHANGED
* with STATE_ON to get the updated value.
*
* Calling this function on or above Android 12 (API >= 31) requires BLUETOOTH_CONNECT runtime permission.
*
* @return set of currently bonded devices
* @throws UnsupportedOperationException if called on system without Bluetooth capabilities
* @throws java.lang.SecurityException if called on Android 12 or newer (API >= 31) and no BLUETOOTH_CONNECT runtime permission granted
*/
public abstract Set<RxBleDevice> getBondedDevices();

Expand Down

0 comments on commit fb8991b

Please sign in to comment.