-
-
Notifications
You must be signed in to change notification settings - Fork 224
Description
Hello @peterfoot ,
This is a suggestion more than an issue, in the hope that it would help others work with IOBluetooth APIs more easily.
Instead of relying on the old Xamarin.Mac and Xamarin.MacCatalyst build targets, we can now directly use the macios project with the appropriate workload and the most supported macos build target (for example net10-macos, net9-maccatalyst).
Since no official IOBluetooth bindings exist yet, we can use your bindings, albeit with slight modifications, as I have done separately here (ApiDefinitions) and here (StructsAndEnums).
Then, all that remains is to add a linker argument in your IOBluetooth.csproj (or in the topmost csproj) as done here, and compile. The bindings are usable after this.
Please refer to the project for all the implementation and binding usages.
I would be willing to work with you to create a better IOBluetooth API, like how other bindings are nicely done and provided in the Macios project.