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 Bluetooth device which is registered to deviceAddress.
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.