diff --git a/src/corebluetooth.cs b/src/corebluetooth.cs index 8ad969cf7d7e..e2b94da53b20 100644 --- a/src/corebluetooth.cs +++ b/src/corebluetooth.cs @@ -104,6 +104,8 @@ interface CBConnectPeripheralOptions { [iOS (13, 0), TV (13, 0), Watch (6, 0), NoMac] [MacCatalyst (13, 1)] bool RequiresAncs { get; set; } + [iOS (17, 0), TV (17, 0), Watch (10, 0), Mac (14, 0), MacCatalyst (17, 0)] + bool EnableAutoReconnect { get; } } [Static] @@ -125,6 +127,9 @@ interface CBConnectPeripheralOptionsKeys { [MacCatalyst (13, 1)] [Field ("CBConnectPeripheralOptionRequiresANCS")] NSString RequiresAncsKey { get; } + [iOS (17, 0), TV (17, 0), Watch (10, 0), Mac (14, 0), MacCatalyst (17, 0)] + [Field ("CBConnectPeripheralOptionEnableAutoReconnect")] + NSString EnableAutoReconnectKey { get; } } [MacCatalyst (13, 1)] @@ -378,6 +383,10 @@ interface CBCentralManagerDelegate { [MacCatalyst (13, 1)] [Export ("centralManager:didUpdateANCSAuthorizationForPeripheral:"), EventArgs ("CBAncsAuthorizationUpdate")] void DidUpdateAncsAuthorization (CBCentralManager central, CBPeripheral peripheral); + + [iOS (17, 0), TV (17, 0), Watch (10, 0), Mac (14, 0), MacCatalyst (17, 0), EventArgs ("CBPeripheralDiconnectionEvent")] + [Export ("centralManager:didDisconnectPeripheral:timestamp:isReconnecting:error:")] + void DidDisconnectPeripheral (CBCentralManager central, CBPeripheral peripheral, double timestamp, bool isReconnecting, [NullAllowed] NSError error); } [MacCatalyst (13, 1)] diff --git a/tests/cecil-tests/BlittablePInvokes.KnownFailures.cs b/tests/cecil-tests/BlittablePInvokes.KnownFailures.cs index 1484d8bd88d0..124d6f6fe1a0 100644 --- a/tests/cecil-tests/BlittablePInvokes.KnownFailures.cs +++ b/tests/cecil-tests/BlittablePInvokes.KnownFailures.cs @@ -1329,6 +1329,8 @@ public partial class BlittablePInvokes { "System.Void UIKit.UIAccessibility::UIAccessibilityRequestGuidedAccessSession(System.Boolean,ObjCRuntime.BlockLiteral*)", "System.Void UIKit.UIGraphics::BeginImageContextWithOptions(CoreGraphics.CGSize,System.Boolean,System.Runtime.InteropServices.NFloat)", "System.Void UIKit.UIGuidedAccessRestriction::UIGuidedAccessConfigureAccessibilityFeatures(System.UIntPtr,System.Boolean,ObjCRuntime.BlockLiteral*)", + "System.Void ObjCRuntime.Messaging::void_objc_msgSend_NativeHandle_NativeHandle_Double_bool_NativeHandle(System.IntPtr,System.IntPtr,ObjCRuntime.NativeHandle,ObjCRuntime.NativeHandle,System.Double,System.Boolean,ObjCRuntime.NativeHandle)", + "System.Void ObjCRuntime.Messaging::void_objc_msgSendSuper_NativeHandle_NativeHandle_Double_bool_NativeHandle(System.IntPtr,System.IntPtr,ObjCRuntime.NativeHandle,ObjCRuntime.NativeHandle,System.Double,System.Boolean,ObjCRuntime.NativeHandle)", "ObjCRuntime.NativeHandle ObjCRuntime.Messaging::NativeHandle_objc_msgSend_CMTime_Int64_bool(System.IntPtr,System.IntPtr,CoreMedia.CMTime,System.Int64,System.Boolean)", "ObjCRuntime.NativeHandle ObjCRuntime.Messaging::NativeHandle_objc_msgSendSuper_CMTime_Int64_bool(System.IntPtr,System.IntPtr,CoreMedia.CMTime,System.Int64,System.Boolean)", "System.Boolean ObjCRuntime.Messaging::bool_objc_msgSend_Int64(System.IntPtr,System.IntPtr,System.Int64)", diff --git a/tests/xtro-sharpie/api-annotations-dotnet/iOS-CoreBluetooth.todo b/tests/xtro-sharpie/api-annotations-dotnet/iOS-CoreBluetooth.todo deleted file mode 100644 index 4aa425e8a739..000000000000 --- a/tests/xtro-sharpie/api-annotations-dotnet/iOS-CoreBluetooth.todo +++ /dev/null @@ -1,2 +0,0 @@ -!missing-field! CBConnectPeripheralOptionEnableAutoReconnect not bound -!missing-protocol-member! CBCentralManagerDelegate::centralManager:didDisconnectPeripheral:timestamp:isReconnecting:error: not found diff --git a/tests/xtro-sharpie/api-annotations-dotnet/macOS-CoreBluetooth.todo b/tests/xtro-sharpie/api-annotations-dotnet/macOS-CoreBluetooth.todo deleted file mode 100644 index 4aa425e8a739..000000000000 --- a/tests/xtro-sharpie/api-annotations-dotnet/macOS-CoreBluetooth.todo +++ /dev/null @@ -1,2 +0,0 @@ -!missing-field! CBConnectPeripheralOptionEnableAutoReconnect not bound -!missing-protocol-member! CBCentralManagerDelegate::centralManager:didDisconnectPeripheral:timestamp:isReconnecting:error: not found diff --git a/tests/xtro-sharpie/api-annotations-dotnet/tvOS-CoreBluetooth.todo b/tests/xtro-sharpie/api-annotations-dotnet/tvOS-CoreBluetooth.todo deleted file mode 100644 index 4aa425e8a739..000000000000 --- a/tests/xtro-sharpie/api-annotations-dotnet/tvOS-CoreBluetooth.todo +++ /dev/null @@ -1,2 +0,0 @@ -!missing-field! CBConnectPeripheralOptionEnableAutoReconnect not bound -!missing-protocol-member! CBCentralManagerDelegate::centralManager:didDisconnectPeripheral:timestamp:isReconnecting:error: not found diff --git a/tests/xtro-sharpie/iOS-CoreBluetooth.todo b/tests/xtro-sharpie/iOS-CoreBluetooth.todo deleted file mode 100644 index 4aa425e8a739..000000000000 --- a/tests/xtro-sharpie/iOS-CoreBluetooth.todo +++ /dev/null @@ -1,2 +0,0 @@ -!missing-field! CBConnectPeripheralOptionEnableAutoReconnect not bound -!missing-protocol-member! CBCentralManagerDelegate::centralManager:didDisconnectPeripheral:timestamp:isReconnecting:error: not found diff --git a/tests/xtro-sharpie/macOS-CoreBluetooth.todo b/tests/xtro-sharpie/macOS-CoreBluetooth.todo deleted file mode 100644 index 4aa425e8a739..000000000000 --- a/tests/xtro-sharpie/macOS-CoreBluetooth.todo +++ /dev/null @@ -1,2 +0,0 @@ -!missing-field! CBConnectPeripheralOptionEnableAutoReconnect not bound -!missing-protocol-member! CBCentralManagerDelegate::centralManager:didDisconnectPeripheral:timestamp:isReconnecting:error: not found diff --git a/tests/xtro-sharpie/tvOS-CoreBluetooth.todo b/tests/xtro-sharpie/tvOS-CoreBluetooth.todo deleted file mode 100644 index 4aa425e8a739..000000000000 --- a/tests/xtro-sharpie/tvOS-CoreBluetooth.todo +++ /dev/null @@ -1,2 +0,0 @@ -!missing-field! CBConnectPeripheralOptionEnableAutoReconnect not bound -!missing-protocol-member! CBCentralManagerDelegate::centralManager:didDisconnectPeripheral:timestamp:isReconnecting:error: not found diff --git a/tests/xtro-sharpie/watchOS-CoreBluetooth.todo b/tests/xtro-sharpie/watchOS-CoreBluetooth.todo deleted file mode 100644 index 4aa425e8a739..000000000000 --- a/tests/xtro-sharpie/watchOS-CoreBluetooth.todo +++ /dev/null @@ -1,2 +0,0 @@ -!missing-field! CBConnectPeripheralOptionEnableAutoReconnect not bound -!missing-protocol-member! CBCentralManagerDelegate::centralManager:didDisconnectPeripheral:timestamp:isReconnecting:error: not found