getProfileConnectionPolicy
abstract suspend fun getProfileConnectionPolicy(deviceAddress: BluetoothDeviceAddress, profile: BluetoothDeviceProfile): BluetoothProfileConnectionPolicy
Content copied to clipboard
Retrieves the platform side connection policy of a specific Bluetooth profile for a specific Bluetooth device.
Note:BluetoothProfileConnectionPolicy.UNKNOWN is returned in the following situations:
The profile is not in connectableProfiles.
The Bluetooth device is not paired.
The policy is not set.
Return
The Bluetooth profile connection policy.
Parameters
deviceAddress
The address of the device.
profile
The Bluetooth profile for which the policy needs to be retrieved.