getProfileConnectionPolicy

abstract suspend fun getProfileConnectionPolicy(deviceAddress: BluetoothDeviceAddress, profile: BluetoothDeviceProfile): BluetoothProfileConnectionPolicy

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:

Return

The Bluetooth profile connection policy.