The class "BluetoothA2DP" has been provided in Xamarin version 5.0 to 5.2, refer to link
Since "BluetoothA2DP" is sealed class, it cannot be inherited. You can only used it through its instances.
You need to override its "GetConnectionState" or "GetDevicesMatchingConnectionStates" methods to connect particular device.
Probably, the best you can do is try to extend the functionality of "BluetoothA2DP" using your own extension method.
Suppose your "BluetoothA2DP" class be like :
public sealed class BluetoothA2dp : Java.Lang.Object, IBluetoothProfile, IDisposable {
public ProfileState GetConnectionState (BluetoothDevice device) {
return some_device_configs;
}
}
Then your own class that extends "BluetoothA2DP" class functionality as :
public static class MyClassExtender
{
public static void ExtendedTest(this BluetoothA2DP instance)
{
instance.GetConnectionState();
}
}
Then use ExtendedTest() method to utilize "BluetoothA2DP" class.
Hope this should work :)
You can refer here for full API Docs.