Skip to content

Instantly share code, notes, and snippets.

@vs-mobiletools-engineering-service2
Created September 6, 2022 18:48
Show Gist options
  • Save vs-mobiletools-engineering-service2/e9073268012b9f3e823b136c425923d7 to your computer and use it in GitHub Desktop.
Save vs-mobiletools-engineering-service2/e9073268012b9f3e823b136c425923d7 to your computer and use it in GitHub Desktop.
generator-diff/generator.diff
diff --git a/old/Constants.ios.generated.cs b/new/Constants.ios.generated.cs
index 3588d52..5e352ae 100644
--- a/old/Constants.ios.generated.cs
+++ b/new/Constants.ios.generated.cs
@@ -170,6 +170,7 @@ namespace ObjCRuntime {
// iOS 16.0
public const string BackgroundAssetsLibrary = "/System/Library/Frameworks/BackgroundAssets.framework/BackgroundAssets";
+ public const string DeviceDiscoveryExtensionLibrary = "/System/Library/Frameworks/DeviceDiscoveryExtension.framework/DeviceDiscoveryExtension";
public const string PushToTalkLibrary = "/System/Library/Frameworks/PushToTalk.framework/PushToTalk";
public const string SharedWithYouLibrary = "/System/Library/Frameworks/SharedWithYouCore.framework/SharedWithYouCore";
public const string SharedWithYouCoreLibrary = "/System/Library/Frameworks/SharedWithYouCore.framework/SharedWithYouCore";
diff --git a/old/dotnet/Constants.ios.generated.cs b/new/dotnet/Constants.ios.generated.cs
index e2e9fe3..1492db5 100644
--- a/old/dotnet/Constants.ios.generated.cs
+++ b/new/dotnet/Constants.ios.generated.cs
@@ -168,6 +168,7 @@ namespace ObjCRuntime {
// iOS 16.0
public const string BackgroundAssetsLibrary = "/System/Library/Frameworks/BackgroundAssets.framework/BackgroundAssets";
+ public const string DeviceDiscoveryExtensionLibrary = "/System/Library/Frameworks/DeviceDiscoveryExtension.framework/DeviceDiscoveryExtension";
public const string PushToTalkLibrary = "/System/Library/Frameworks/PushToTalk.framework/PushToTalk";
public const string SharedWithYouLibrary = "/System/Library/Frameworks/SharedWithYouCore.framework/SharedWithYouCore";
public const string SharedWithYouCoreLibrary = "/System/Library/Frameworks/SharedWithYouCore.framework/SharedWithYouCore";
diff --git a/old/dotnet/Constants.maccatalyst.generated.cs b/new/dotnet/Constants.maccatalyst.generated.cs
index 6d7d8d9..ff20fc6 100644
--- a/old/dotnet/Constants.maccatalyst.generated.cs
+++ b/new/dotnet/Constants.maccatalyst.generated.cs
@@ -133,6 +133,7 @@ namespace ObjCRuntime {
// MacCatalyst 16.0
public const string BackgroundAssetsLibrary = "/System/Library/Frameworks/BackgroundAssets.framework/BackgroundAssets";
+ public const string DeviceDiscoveryExtensionLibrary = "/System/Library/Frameworks/DeviceDiscoveryExtension.framework/DeviceDiscoveryExtension";
public const string ExecutionPolicyLibrary = "/System/Library/Frameworks/ExecutionPolicy.framework/ExecutionPolicy";
public const string PushToTalkLibrary = "/System/Library/Frameworks/PushToTalk.framework/PushToTalk";
public const string SharedWithYouLibrary = "/System/Library/Frameworks/SharedWithYouCore.framework/SharedWithYouCore";
diff --git a/new/dotnet/ios/generated-sources/DeviceDiscoveryExtension/DDDevice.g.cs b/new/dotnet/ios/generated-sources/DeviceDiscoveryExtension/DDDevice.g.cs
new file mode 100644
index 0000000..c19b3dc
--- /dev/null
+++ b/new/dotnet/ios/generated-sources/DeviceDiscoveryExtension/DDDevice.g.cs
@@ -0,0 +1,648 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using NewsstandKit;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace DeviceDiscoveryExtension {
+ [Register("DDDevice", true)]
+ [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("ios16.0")]
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
+ public unsafe partial class DDDevice : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ #if ARCH_32
+ #pragma warning disable 649
+ static readonly NativeHandle class_ptr;
+ #pragma warning restore 649
+ #else
+ static readonly NativeHandle class_ptr = Class.GetHandle ("DDDevice");
+ #endif
+ public override NativeHandle ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected DDDevice (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal DDDevice (NativeHandle handle) : base (handle)
+ {
+ }
+
+ [Export ("initWithDisplayName:category:protocolType:identifier:")]
+ [UnsupportedOSPlatform ("macos")]
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("ios16.0")]
+ [DesignatedInitializer]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public DDDevice (string displayName, DDDeviceCategory category, global::UniformTypeIdentifiers.UTType protocolType, string identifier)
+ : base (NSObjectFlag.Empty)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (displayName is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (displayName));
+ var protocolType__handle__ = protocolType!.GetNonNullHandle (nameof (protocolType));
+ if (identifier is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (identifier));
+ var nsdisplayName = CFString.CreateNative (displayName);
+ var nsidentifier = CFString.CreateNative (identifier);
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_NativeHandle_IntPtr_NativeHandle_NativeHandle (this.Handle, Selector.GetHandle ("initWithDisplayName:category:protocolType:identifier:"), nsdisplayName, (IntPtr) (long) category, protocolType__handle__, nsidentifier), "initWithDisplayName:category:protocolType:identifier:");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper_NativeHandle_IntPtr_NativeHandle_NativeHandle (this.SuperHandle, Selector.GetHandle ("initWithDisplayName:category:protocolType:identifier:"), nsdisplayName, (IntPtr) (long) category, protocolType__handle__, nsidentifier), "initWithDisplayName:category:protocolType:identifier:");
+ }
+ CFString.ReleaseNative (nsdisplayName);
+ CFString.ReleaseNative (nsidentifier);
+ #endif
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("macos")]
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("ios16.0")]
+ public virtual NSUuid? BluetoothIdentifier {
+ [Export ("bluetoothIdentifier", ArgumentSemantic.Retain)]
+ [UnsupportedOSPlatform ("macos")]
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("ios16.0")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ NSUuid? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<NSUuid> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("bluetoothIdentifier")))!;
+ } else {
+ ret = Runtime.GetNSObject<NSUuid> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("bluetoothIdentifier")))!;
+ }
+ return ret!;
+ #endif
+ }
+ [Export ("setBluetoothIdentifier:", ArgumentSemantic.Retain)]
+ [UnsupportedOSPlatform ("macos")]
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("ios16.0")]
+ set {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ var value__handle__ = value.GetHandle ();
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("setBluetoothIdentifier:"), value__handle__);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("setBluetoothIdentifier:"), value__handle__);
+ }
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("macos")]
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("ios16.0")]
+ public virtual DDDeviceCategory Category {
+ [Export ("category", ArgumentSemantic.UnsafeUnretained)]
+ [UnsupportedOSPlatform ("macos")]
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("ios16.0")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ DDDeviceCategory ret;
+ if (IsDirectBinding) {
+ ret = (DeviceDiscoveryExtension.DDDeviceCategory) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("category"));
+ } else {
+ ret = (DeviceDiscoveryExtension.DDDeviceCategory) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("category"));
+ }
+ return ret!;
+ #endif
+ }
+ [Export ("setCategory:", ArgumentSemantic.UnsafeUnretained)]
+ [UnsupportedOSPlatform ("macos")]
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("ios16.0")]
+ set {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("setCategory:"), (IntPtr) (long) value);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("setCategory:"), (IntPtr) (long) value);
+ }
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("macos")]
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("ios16.0")]
+ public virtual string DisplayName {
+ [Export ("displayName")]
+ [UnsupportedOSPlatform ("macos")]
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("ios16.0")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (IsDirectBinding) {
+ return CFString.FromHandle (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("displayName")))!;
+ } else {
+ return CFString.FromHandle (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("displayName")))!;
+ }
+ #endif
+ }
+ [Export ("setDisplayName:")]
+ [UnsupportedOSPlatform ("macos")]
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("ios16.0")]
+ set {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (value is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (value));
+ var nsvalue = CFString.CreateNative (value);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("setDisplayName:"), nsvalue);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("setDisplayName:"), nsvalue);
+ }
+ CFString.ReleaseNative (nsvalue);
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("macos")]
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("ios16.0")]
+ public virtual string Identifier {
+ [Export ("identifier")]
+ [UnsupportedOSPlatform ("macos")]
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("ios16.0")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (IsDirectBinding) {
+ return CFString.FromHandle (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("identifier")))!;
+ } else {
+ return CFString.FromHandle (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("identifier")))!;
+ }
+ #endif
+ }
+ [Export ("setIdentifier:")]
+ [UnsupportedOSPlatform ("macos")]
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("ios16.0")]
+ set {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (value is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (value));
+ var nsvalue = CFString.CreateNative (value);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("setIdentifier:"), nsvalue);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("setIdentifier:"), nsvalue);
+ }
+ CFString.ReleaseNative (nsvalue);
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("macos")]
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("ios16.0")]
+ public virtual string? MediaContentSubtitle {
+ [Export ("mediaContentSubtitle")]
+ [UnsupportedOSPlatform ("macos")]
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("ios16.0")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (IsDirectBinding) {
+ return CFString.FromHandle (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("mediaContentSubtitle")))!;
+ } else {
+ return CFString.FromHandle (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("mediaContentSubtitle")))!;
+ }
+ #endif
+ }
+ [Export ("setMediaContentSubtitle:")]
+ [UnsupportedOSPlatform ("macos")]
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("ios16.0")]
+ set {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ var nsvalue = CFString.CreateNative (value);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("setMediaContentSubtitle:"), nsvalue);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("setMediaContentSubtitle:"), nsvalue);
+ }
+ CFString.ReleaseNative (nsvalue);
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("macos")]
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("ios16.0")]
+ public virtual string? MediaContentTitle {
+ [Export ("mediaContentTitle")]
+ [UnsupportedOSPlatform ("macos")]
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("ios16.0")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (IsDirectBinding) {
+ return CFString.FromHandle (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("mediaContentTitle")))!;
+ } else {
+ return CFString.FromHandle (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("mediaContentTitle")))!;
+ }
+ #endif
+ }
+ [Export ("setMediaContentTitle:")]
+ [UnsupportedOSPlatform ("macos")]
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("ios16.0")]
+ set {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ var nsvalue = CFString.CreateNative (value);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("setMediaContentTitle:"), nsvalue);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("setMediaContentTitle:"), nsvalue);
+ }
+ CFString.ReleaseNative (nsvalue);
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("macos")]
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("ios16.0")]
+ public virtual DDDeviceMediaPlaybackState MediaPlaybackState {
+ [Export ("mediaPlaybackState", ArgumentSemantic.UnsafeUnretained)]
+ [UnsupportedOSPlatform ("macos")]
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("ios16.0")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ DDDeviceMediaPlaybackState ret;
+ if (IsDirectBinding) {
+ ret = (DeviceDiscoveryExtension.DDDeviceMediaPlaybackState) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("mediaPlaybackState"));
+ } else {
+ ret = (DeviceDiscoveryExtension.DDDeviceMediaPlaybackState) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("mediaPlaybackState"));
+ }
+ return ret!;
+ #endif
+ }
+ [Export ("setMediaPlaybackState:", ArgumentSemantic.UnsafeUnretained)]
+ [UnsupportedOSPlatform ("macos")]
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("ios16.0")]
+ set {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("setMediaPlaybackState:"), (IntPtr) (long) value);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("setMediaPlaybackState:"), (IntPtr) (long) value);
+ }
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("macos")]
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("ios16.0")]
+ public virtual DDDeviceProtocol Protocol {
+ [Export ("protocol", ArgumentSemantic.UnsafeUnretained)]
+ [UnsupportedOSPlatform ("macos")]
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("ios16.0")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ DDDeviceProtocol ret;
+ if (IsDirectBinding) {
+ ret = (DeviceDiscoveryExtension.DDDeviceProtocol) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("protocol"));
+ } else {
+ ret = (DeviceDiscoveryExtension.DDDeviceProtocol) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("protocol"));
+ }
+ return ret!;
+ #endif
+ }
+ [Export ("setProtocol:", ArgumentSemantic.UnsafeUnretained)]
+ [UnsupportedOSPlatform ("macos")]
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("ios16.0")]
+ set {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("setProtocol:"), (IntPtr) (long) value);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("setProtocol:"), (IntPtr) (long) value);
+ }
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("macos")]
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("ios16.0")]
+ public virtual global::UniformTypeIdentifiers.UTType ProtocolType {
+ [Export ("protocolType", ArgumentSemantic.Retain)]
+ [UnsupportedOSPlatform ("macos")]
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("ios16.0")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ global::UniformTypeIdentifiers.UTType? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<global::UniformTypeIdentifiers.UTType> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("protocolType")))!;
+ } else {
+ ret = Runtime.GetNSObject<global::UniformTypeIdentifiers.UTType> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("protocolType")))!;
+ }
+ return ret!;
+ #endif
+ }
+ [Export ("setProtocolType:", ArgumentSemantic.Retain)]
+ [UnsupportedOSPlatform ("macos")]
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("ios16.0")]
+ set {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ var value__handle__ = value!.GetNonNullHandle (nameof (value));
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("setProtocolType:"), value__handle__);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("setProtocolType:"), value__handle__);
+ }
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("macos")]
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("ios16.0")]
+ public virtual DDDeviceState State {
+ [Export ("state", ArgumentSemantic.UnsafeUnretained)]
+ [UnsupportedOSPlatform ("macos")]
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("ios16.0")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ DDDeviceState ret;
+ if (IsDirectBinding) {
+ ret = (DeviceDiscoveryExtension.DDDeviceState) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("state"));
+ } else {
+ ret = (DeviceDiscoveryExtension.DDDeviceState) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("state"));
+ }
+ return ret!;
+ #endif
+ }
+ [Export ("setState:", ArgumentSemantic.UnsafeUnretained)]
+ [UnsupportedOSPlatform ("macos")]
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("ios16.0")]
+ set {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("setState:"), (IntPtr) (long) value);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("setState:"), (IntPtr) (long) value);
+ }
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("macos")]
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("ios16.0")]
+ public virtual NSData? TxtRecordData {
+ [Export ("txtRecordData", ArgumentSemantic.Copy)]
+ [UnsupportedOSPlatform ("macos")]
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("ios16.0")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ NSData? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<NSData> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("txtRecordData")))!;
+ } else {
+ ret = Runtime.GetNSObject<NSData> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("txtRecordData")))!;
+ }
+ return ret!;
+ #endif
+ }
+ [Export ("setTxtRecordData:", ArgumentSemantic.Copy)]
+ [UnsupportedOSPlatform ("macos")]
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("ios16.0")]
+ set {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ var value__handle__ = value.GetHandle ();
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("setTxtRecordData:"), value__handle__);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("setTxtRecordData:"), value__handle__);
+ }
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("macos")]
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("ios16.0")]
+ public virtual NSUrl Url {
+ [Export ("url", ArgumentSemantic.Copy)]
+ [UnsupportedOSPlatform ("macos")]
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("ios16.0")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ NSUrl? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<NSUrl> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("url")))!;
+ } else {
+ ret = Runtime.GetNSObject<NSUrl> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("url")))!;
+ }
+ return ret!;
+ #endif
+ }
+ [Export ("setUrl:", ArgumentSemantic.Copy)]
+ [UnsupportedOSPlatform ("macos")]
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("ios16.0")]
+ set {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ var value__handle__ = value!.GetNonNullHandle (nameof (value));
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("setUrl:"), value__handle__);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("setUrl:"), value__handle__);
+ }
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("macos")]
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("ios16.0")]
+ internal virtual nint _NetworkEndpoint {
+ [Export ("networkEndpoint", ArgumentSemantic.Retain)]
+ [UnsupportedOSPlatform ("macos")]
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("ios16.0")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (IsDirectBinding) {
+ return global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("networkEndpoint"));
+ } else {
+ return global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("networkEndpoint"));
+ }
+ #endif
+ }
+ [Export ("setNetworkEndpoint:", ArgumentSemantic.Retain)]
+ [UnsupportedOSPlatform ("macos")]
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("ios16.0")]
+ set {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("setNetworkEndpoint:"), value);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("setNetworkEndpoint:"), value);
+ }
+ #endif
+ }
+ }
+ } /* class DDDevice */
+}
diff --git a/new/dotnet/ios/generated-sources/DeviceDiscoveryExtension/DDDeviceCategory.g.cs b/new/dotnet/ios/generated-sources/DeviceDiscoveryExtension/DDDeviceCategory.g.cs
new file mode 100644
index 0000000..1eb3a91
--- /dev/null
+++ b/new/dotnet/ios/generated-sources/DeviceDiscoveryExtension/DDDeviceCategory.g.cs
@@ -0,0 +1,65 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using NewsstandKit;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace DeviceDiscoveryExtension {
+ [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("ios16.0")]
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
+ [Native]
+ public enum DDDeviceCategory : long {
+ HiFiSpeaker = 0,
+ HiFiSpeakerMultiple = 1,
+ TvWithMediaBox = 2,
+ Tv = 3,
+ LaptopComputer = 4,
+ DesktopComputer = 5,
+ }
+}
diff --git a/new/dotnet/ios/generated-sources/DeviceDiscoveryExtension/DDDeviceEvent.g.cs b/new/dotnet/ios/generated-sources/DeviceDiscoveryExtension/DDDeviceEvent.g.cs
new file mode 100644
index 0000000..ca16ce6
--- /dev/null
+++ b/new/dotnet/ios/generated-sources/DeviceDiscoveryExtension/DDDeviceEvent.g.cs
@@ -0,0 +1,150 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using NewsstandKit;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace DeviceDiscoveryExtension {
+ [Register("DDDeviceEvent", true)]
+ [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("ios16.0")]
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
+ public unsafe partial class DDDeviceEvent : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ #if ARCH_32
+ #pragma warning disable 649
+ static readonly NativeHandle class_ptr;
+ #pragma warning restore 649
+ #else
+ static readonly NativeHandle class_ptr = Class.GetHandle ("DDDeviceEvent");
+ #endif
+ public override NativeHandle ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected DDDeviceEvent (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal DDDeviceEvent (NativeHandle handle) : base (handle)
+ {
+ }
+
+ [Export ("initWithEventType:device:")]
+ [UnsupportedOSPlatform ("macos")]
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("ios16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public DDDeviceEvent (DDEventType type, DDDevice device)
+ : base (NSObjectFlag.Empty)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ var device__handle__ = device!.GetNonNullHandle (nameof (device));
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend_IntPtr_NativeHandle (this.Handle, Selector.GetHandle ("initWithEventType:device:"), (IntPtr) (long) type, device__handle__), "initWithEventType:device:");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper_IntPtr_NativeHandle (this.SuperHandle, Selector.GetHandle ("initWithEventType:device:"), (IntPtr) (long) type, device__handle__), "initWithEventType:device:");
+ }
+ #endif
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("macos")]
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("ios16.0")]
+ public virtual DDDevice Device {
+ [Export ("device", ArgumentSemantic.Retain)]
+ [UnsupportedOSPlatform ("macos")]
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("ios16.0")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ DDDevice? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<DDDevice> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSend (this.Handle, Selector.GetHandle ("device")))!;
+ } else {
+ ret = Runtime.GetNSObject<DDDevice> (global::ObjCRuntime.Messaging.NativeHandle_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("device")))!;
+ }
+ return ret!;
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [UnsupportedOSPlatform ("macos")]
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("ios16.0")]
+ public virtual DDEventType EventType {
+ [Export ("eventType", ArgumentSemantic.UnsafeUnretained)]
+ [UnsupportedOSPlatform ("macos")]
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("ios16.0")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ DDEventType ret;
+ if (IsDirectBinding) {
+ ret = (DeviceDiscoveryExtension.DDEventType) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("eventType"));
+ } else {
+ ret = (DeviceDiscoveryExtension.DDEventType) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("eventType"));
+ }
+ return ret!;
+ #endif
+ }
+ }
+ } /* class DDDeviceEvent */
+}
diff --git a/new/dotnet/ios/generated-sources/DeviceDiscoveryExtension/DDDeviceMediaPlaybackState.g.cs b/new/dotnet/ios/generated-sources/DeviceDiscoveryExtension/DDDeviceMediaPlaybackState.g.cs
new file mode 100644
index 0000000..a780b7c
--- /dev/null
+++ b/new/dotnet/ios/generated-sources/DeviceDiscoveryExtension/DDDeviceMediaPlaybackState.g.cs
@@ -0,0 +1,62 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using NewsstandKit;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace DeviceDiscoveryExtension {
+ [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("ios16.0")]
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
+ [Native]
+ public enum DDDeviceMediaPlaybackState : long {
+ NoContent = 0,
+ Paused = 1,
+ Playing = 2,
+ }
+}
diff --git a/new/dotnet/ios/generated-sources/DeviceDiscoveryExtension/DDDeviceProtocol.g.cs b/new/dotnet/ios/generated-sources/DeviceDiscoveryExtension/DDDeviceProtocol.g.cs
new file mode 100644
index 0000000..19f40d6
--- /dev/null
+++ b/new/dotnet/ios/generated-sources/DeviceDiscoveryExtension/DDDeviceProtocol.g.cs
@@ -0,0 +1,61 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using NewsstandKit;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace DeviceDiscoveryExtension {
+ [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("ios16.0")]
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
+ [Native]
+ public enum DDDeviceProtocol : long {
+ Invalid = 0,
+ Dial = 1,
+ }
+}
diff --git a/new/dotnet/ios/generated-sources/DeviceDiscoveryExtension/DDDeviceProtocolStrings.g.cs b/new/dotnet/ios/generated-sources/DeviceDiscoveryExtension/DDDeviceProtocolStrings.g.cs
new file mode 100644
index 0000000..e00fc7b
--- /dev/null
+++ b/new/dotnet/ios/generated-sources/DeviceDiscoveryExtension/DDDeviceProtocolStrings.g.cs
@@ -0,0 +1,94 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using NewsstandKit;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace DeviceDiscoveryExtension {
+ [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("ios16.0")]
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
+ public unsafe static partial class DDDeviceProtocolStrings {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static NSString? _Dial;
+ [Field ("DDDeviceProtocolStringDIAL", "DeviceDiscoveryExtension")]
+ [UnsupportedOSPlatform ("macos")]
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("ios16.0")]
+ public static NSString Dial {
+ [UnsupportedOSPlatform ("macos")]
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("ios16.0")]
+ get {
+ if (_Dial is null)
+ _Dial = Dlfcn.GetStringConstant (Libraries.DeviceDiscoveryExtension.Handle, "DDDeviceProtocolStringDIAL")!;
+ return _Dial;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static NSString? _Invalid;
+ [Field ("DDDeviceProtocolStringInvalid", "DeviceDiscoveryExtension")]
+ [UnsupportedOSPlatform ("macos")]
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("ios16.0")]
+ public static NSString Invalid {
+ [UnsupportedOSPlatform ("macos")]
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("ios16.0")]
+ get {
+ if (_Invalid is null)
+ _Invalid = Dlfcn.GetStringConstant (Libraries.DeviceDiscoveryExtension.Handle, "DDDeviceProtocolStringInvalid")!;
+ return _Invalid;
+ }
+ }
+ } /* class DDDeviceProtocolStrings */
+}
diff --git a/new/dotnet/ios/generated-sources/DeviceDiscoveryExtension/DDDeviceState.g.cs b/new/dotnet/ios/generated-sources/DeviceDiscoveryExtension/DDDeviceState.g.cs
new file mode 100644
index 0000000..59bee04
--- /dev/null
+++ b/new/dotnet/ios/generated-sources/DeviceDiscoveryExtension/DDDeviceState.g.cs
@@ -0,0 +1,64 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using NewsstandKit;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace DeviceDiscoveryExtension {
+ [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("ios16.0")]
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
+ [Native]
+ public enum DDDeviceState : long {
+ Invalid = 0,
+ Activating = 10,
+ Activated = 20,
+ Authorized = 25,
+ Invalidating = 30,
+ }
+}
diff --git a/new/dotnet/ios/generated-sources/DeviceDiscoveryExtension/DDDiscoverySession.g.cs b/new/dotnet/ios/generated-sources/DeviceDiscoveryExtension/DDDiscoverySession.g.cs
new file mode 100644
index 0000000..787f0aa
--- /dev/null
+++ b/new/dotnet/ios/generated-sources/DeviceDiscoveryExtension/DDDiscoverySession.g.cs
@@ -0,0 +1,115 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using NewsstandKit;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace DeviceDiscoveryExtension {
+ [Register("DDDiscoverySession", true)]
+ [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("ios16.0")]
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
+ public unsafe partial class DDDiscoverySession : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ #if ARCH_32
+ #pragma warning disable 649
+ static readonly NativeHandle class_ptr;
+ #pragma warning restore 649
+ #else
+ static readonly NativeHandle class_ptr = Class.GetHandle ("DDDiscoverySession");
+ #endif
+ public override NativeHandle ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ [Export ("init")]
+ public DDDiscoverySession () : base (NSObjectFlag.Empty)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, global::ObjCRuntime.Selector.GetHandle ("init")), "init");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, global::ObjCRuntime.Selector.GetHandle ("init")), "init");
+ }
+ #endif
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected DDDiscoverySession (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal DDDiscoverySession (NativeHandle handle) : base (handle)
+ {
+ }
+
+ [Export ("reportEvent:")]
+ [UnsupportedOSPlatform ("macos")]
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
+ [SupportedOSPlatform ("ios16.0")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual void ReportEvent (DDDeviceEvent inEvent)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ var inEvent__handle__ = inEvent!.GetNonNullHandle (nameof (inEvent));
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("reportEvent:"), inEvent__handle__);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("reportEvent:"), inEvent__handle__);
+ }
+ #endif
+ }
+ } /* class DDDiscoverySession */
+}
diff --git a/new/dotnet/ios/generated-sources/DeviceDiscoveryExtension/DDErrorCode.g.cs b/new/dotnet/ios/generated-sources/DeviceDiscoveryExtension/DDErrorCode.g.cs
new file mode 100644
index 0000000..4fe8fa5
--- /dev/null
+++ b/new/dotnet/ios/generated-sources/DeviceDiscoveryExtension/DDErrorCode.g.cs
@@ -0,0 +1,83 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using NewsstandKit;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace DeviceDiscoveryExtension {
+ [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("ios16.0")]
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
+ [Native]
+ public enum DDErrorCode : long {
+ Success = 0,
+ Unknown = 350000,
+ BadParameter = 350001,
+ Unsupported = 350002,
+ Timeout = 350003,
+ Internal = 350004,
+ MissingEntitlement = 350005,
+ Permission = 350006,
+ Next = 350007,
+ }
+ [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("ios16.0")]
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static public partial class DDErrorCodeExtensions {
+ [Field ("DDErrorDomain", "DeviceDiscoveryExtension")]
+ static NSString? _domain;
+ public static NSString? GetDomain (this DDErrorCode self)
+ {
+ if (_domain is null)
+ _domain = Dlfcn.GetStringConstant (Libraries.DeviceDiscoveryExtension.Handle, "DDErrorDomain");
+ return _domain;
+ }
+ }
+}
diff --git a/new/dotnet/ios/generated-sources/DeviceDiscoveryExtension/DDEventType.g.cs b/new/dotnet/ios/generated-sources/DeviceDiscoveryExtension/DDEventType.g.cs
new file mode 100644
index 0000000..cf53bf6
--- /dev/null
+++ b/new/dotnet/ios/generated-sources/DeviceDiscoveryExtension/DDEventType.g.cs
@@ -0,0 +1,63 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.Versioning;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using NewsstandKit;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace DeviceDiscoveryExtension {
+ [UnsupportedOSPlatform ("macos")]
+ [SupportedOSPlatform ("ios16.0")]
+ [UnsupportedOSPlatform ("maccatalyst")]
+ [UnsupportedOSPlatform ("tvos")]
+ [Native]
+ public enum DDEventType : long {
+ Unknown = 0,
+ DeviceFound = 40,
+ DeviceLost = 41,
+ DeviceChanged = 42,
+ }
+}
diff --git a/old/dotnet/ios/generated-sources/ObjCRuntime/Libraries.g.cs b/new/dotnet/ios/generated-sources/ObjCRuntime/Libraries.g.cs
index 6ff1ca9..551c8aa 100644
--- a/old/dotnet/ios/generated-sources/ObjCRuntime/Libraries.g.cs
+++ b/new/dotnet/ios/generated-sources/ObjCRuntime/Libraries.g.cs
@@ -171,6 +171,9 @@ namespace ObjCRuntime {
static public class DeviceCheck {
static public readonly IntPtr Handle = Dlfcn._dlopen (Constants.DeviceCheckLibrary, 0);
}
+ static public class DeviceDiscoveryExtension {
+ static public readonly IntPtr Handle = Dlfcn._dlopen (Constants.DeviceDiscoveryExtensionLibrary, 0);
+ }
static public class EventKit {
static public readonly IntPtr Handle = Dlfcn._dlopen (Constants.EventKitLibrary, 0);
}
diff --git a/old/dotnet/projects/iOS/iOS.csproj b/new/dotnet/projects/iOS/iOS.csproj
index 8e3d589..fe9e66d 100644
--- a/old/dotnet/projects/iOS/iOS.csproj
+++ b/new/dotnet/projects/iOS/iOS.csproj
@@ -349,6 +349,7 @@
<Compile Include="../../../../CoreVideo/CVPixelFormatType.cs" Link="sources/CoreVideo/CVPixelFormatType.cs"/>
<Compile Include="../../../../CoreVideo/CVTime.cs" Link="sources/CoreVideo/CVTime.cs"/>
<Compile Include="../../../../CoreVideo/CoreVideo.cs" Link="sources/CoreVideo/CoreVideo.cs"/>
+ <Compile Include="../../../../DeviceDiscoveryExtension/DDDevice.cs" Link="sources/DeviceDiscoveryExtension/DDDevice.cs"/>
<Compile Include="../../../../DotNetGlobals.cs" Link="sources/DotNetGlobals.cs"/>
<Compile Include="../../../../EventKit/EventKit.cs" Link="sources/EventKit/EventKit.cs"/>
<Compile Include="../../../../EventKitUI/Defs.cs" Link="sources/EventKitUI/Defs.cs"/>
@@ -1053,6 +1054,7 @@
<None Include="../../../../CoreTelephony/CTEnums.cs" Link="apis/CoreTelephony/CTEnums.cs"/>
<None Include="../../../../CoreText/CTEnums.cs" Link="apis/CoreText/CTEnums.cs"/>
<None Include="../../../../CoreVideo/CVEnums.cs" Link="apis/CoreVideo/CVEnums.cs"/>
+ <None Include="../../../../DeviceDiscoveryExtension/Enums.cs" Link="apis/DeviceDiscoveryExtension/Enums.cs"/>
<None Include="../../../../EventKit/EKEnums.cs" Link="apis/EventKit/EKEnums.cs"/>
<None Include="../../../../ExternalAccessory/EAEnums.cs" Link="apis/ExternalAccessory/EAEnums.cs"/>
<None Include="../../../../Foundation/Enum.cs" Link="apis/Foundation/Enum.cs"/>
@@ -1150,6 +1152,7 @@
<None Include="../../../../coretext.cs" Link="apis/coretext.cs"/>
<None Include="../../../../corevideo.cs" Link="apis/corevideo.cs"/>
<None Include="../../../../devicecheck.cs" Link="apis/devicecheck.cs"/>
+ <None Include="../../../../devicediscoveryextension.cs" Link="apis/devicediscoveryextension.cs"/>
<None Include="../../../../eventkit.cs" Link="apis/eventkit.cs"/>
<None Include="../../../../eventkitui.cs" Link="apis/eventkitui.cs"/>
<None Include="../../../../externalaccessory.cs" Link="apis/externalaccessory.cs"/>
diff --git a/old/generator-frameworks.g.cs b/new/generator-frameworks.g.cs
index 4f62d76..d7d350a 100644
--- a/old/generator-frameworks.g.cs
+++ b/new/generator-frameworks.g.cs
@@ -1,7 +1,7 @@
using System.Collections.Generic;
partial class Frameworks {
- internal readonly HashSet<string> iosframeworks = new HashSet<string> {"Accessibility", "Accelerate", "AuthenticationServices", "AVFoundation", "CoreBluetooth", "CoreData", "CoreFoundation", "CoreMedia", "CoreML", "CoreVideo", "Compression", "DeviceCheck", "Foundation", "GameKit", "NaturalLanguage", "Network", "OSLog", "SceneKit", "ShazamKit", "SoundAnalysis", "SpriteKit", "StoreKit", "UniformTypeIdentifiers", "AVKit", "Accounts", "AdServices", "AdSupport", "AddressBook", "AddressBookUI", "AppClip", "AppTrackingTransparency", "ARKit", "AssetsLibrary", "AudioToolbox", "AudioUnit", "AutomaticAssessmentConfiguration", "BackgroundAssets", "BackgroundTasks", "BusinessChat", "CallKit", "CarPlay", "CFNetwork", "Chip", "ClassKit", "CloudKit", "Contacts", "ContactsUI", "CoreAnimation", "CoreAudioKit", "CoreGraphics", "CoreHaptics", "CoreImage", "CoreLocation", "CoreLocationUI", "CoreMIDI", "CoreMotion", "CoreNFC", "CoreSpotlight", "CoreTelephony", "CoreText", "EventKit", "EventKitUI", "ExternalAccessory", "FileProvider", "FileProviderUI", "GLKit", "GameController", "GameplayKit", "HealthKit", "HealthKitUI", "HomeKit", "IdentityLookup", "IdentityLookupUI", "ImageIO", "Intents", "IntentsUI", "IOSurface", "JavaScriptCore", "LinkPresentation", "LocalAuthentication", "MapKit", "MediaAccessibility", "MediaPlayer", "MediaSetup", "MediaToolbox", "Messages", "MessageUI", "Metal", "MetalKit", "MetalPerformanceShaders", "MetalPerformanceShadersGraph", "MetricKit", "MLCompute", "MobileCoreServices", "ModelIO", "MultipeerConnectivity", "NearbyInteraction", "NetworkExtension", "NewsstandKit", "NotificationCenter", "OpenGLES", "PassKit", "PdfKit", "PencilKit", "Phase", "Photos", "PhotosUI", "PushKit", "PushToTalk", "QuickLook", "QuickLookThumbnailing", "ReplayKit", "SafariServices", "ScreenTime", "Security", "SensorKit", "SharedWithYou", "SharedWithYouCore", "Social", "Speech", "SystemConfiguration", "ThreadNetwork", "Twitter", "UIKit", "XKit", "UserNotifications", "UserNotificationsUI", "VideoToolbox", "VideoSubscriberAccount", "Vision", "VisionKit", "WatchConnectivity", "WatchKit", "WKWebKit", "iAd"};
+ internal readonly HashSet<string> iosframeworks = new HashSet<string> {"Accessibility", "Accelerate", "AuthenticationServices", "AVFoundation", "CoreBluetooth", "CoreData", "CoreFoundation", "CoreMedia", "CoreML", "CoreVideo", "Compression", "DeviceCheck", "Foundation", "GameKit", "NaturalLanguage", "Network", "OSLog", "SceneKit", "ShazamKit", "SoundAnalysis", "SpriteKit", "StoreKit", "UniformTypeIdentifiers", "AVKit", "Accounts", "AdServices", "AdSupport", "AddressBook", "AddressBookUI", "AppClip", "AppTrackingTransparency", "ARKit", "AssetsLibrary", "AudioToolbox", "AudioUnit", "AutomaticAssessmentConfiguration", "BackgroundAssets", "BackgroundTasks", "BusinessChat", "CallKit", "CarPlay", "CFNetwork", "Chip", "ClassKit", "CloudKit", "Contacts", "ContactsUI", "CoreAnimation", "CoreAudioKit", "CoreGraphics", "CoreHaptics", "CoreImage", "CoreLocation", "CoreLocationUI", "CoreMIDI", "CoreMotion", "CoreNFC", "CoreSpotlight", "CoreTelephony", "CoreText", "DeviceDiscoveryExtension", "EventKit", "EventKitUI", "ExternalAccessory", "FileProvider", "FileProviderUI", "GLKit", "GameController", "GameplayKit", "HealthKit", "HealthKitUI", "HomeKit", "IdentityLookup", "IdentityLookupUI", "ImageIO", "Intents", "IntentsUI", "IOSurface", "JavaScriptCore", "LinkPresentation", "LocalAuthentication", "MapKit", "MediaAccessibility", "MediaPlayer", "MediaSetup", "MediaToolbox", "Messages", "MessageUI", "Metal", "MetalKit", "MetalPerformanceShaders", "MetalPerformanceShadersGraph", "MetricKit", "MLCompute", "MobileCoreServices", "ModelIO", "MultipeerConnectivity", "NearbyInteraction", "NetworkExtension", "NewsstandKit", "NotificationCenter", "OpenGLES", "PassKit", "PdfKit", "PencilKit", "Phase", "Photos", "PhotosUI", "PushKit", "PushToTalk", "QuickLook", "QuickLookThumbnailing", "ReplayKit", "SafariServices", "ScreenTime", "Security", "SensorKit", "SharedWithYou", "SharedWithYouCore", "Social", "Speech", "SystemConfiguration", "ThreadNetwork", "Twitter", "UIKit", "XKit", "UserNotifications", "UserNotificationsUI", "VideoToolbox", "VideoSubscriberAccount", "Vision", "VisionKit", "WatchConnectivity", "WatchKit", "WKWebKit", "iAd"};
internal readonly HashSet<string> macosframeworks = new HashSet<string> {"Accessibility", "Accelerate", "AuthenticationServices", "AVFoundation", "CoreBluetooth", "CoreData", "CoreFoundation", "CoreMedia", "CoreML", "CoreVideo", "Compression", "DeviceCheck", "Foundation", "GameKit", "NaturalLanguage", "Network", "OSLog", "SceneKit", "ShazamKit", "SoundAnalysis", "SpriteKit", "StoreKit", "UniformTypeIdentifiers", "Accounts", "AdServices", "AdSupport", "AppKit", "XKit", "AppTrackingTransparency", "AudioToolbox", "AudioUnit", "AutomaticAssessmentConfiguration", "AVKit", "BusinessChat", "BackgroundAssets", "CallKit", "CFNetwork", "Chip", "ClassKit", "CloudKit", "Contacts", "ContactsUI", "CoreAnimation", "CoreAudioKit", "CoreGraphics", "CoreImage", "CoreLocation", "CoreMidi", "CoreMotion", "CoreServices", "CoreSpotlight", "CoreText", "CoreWlan", "EventKit", "ExecutionPolicy", "ExtensionKit", "ExternalAccessory", "FileProvider", "FileProviderUI", "FinderSync", "GameController", "GameplayKit", "GLKit", "HealthKit", "ImageIO", "ImageCaptureCore", "ImageKit", "Intents", "IntentsUI", "IOSurface", "iTunesLibrary", "JavaScriptCore", "LinkPresentation", "LocalAuthentication", "LocalAuthenticationEmbeddedUI", "MailKit", "MapKit", "MediaAccessibility", "MediaLibrary", "MediaPlayer", "MediaToolbox", "Metal", "MetalKit", "MetalPerformanceShaders", "MetalPerformanceShadersGraph", "MetricKit", "MLCompute", "MobileCoreServices", "ModelIO", "MultipeerConnectivity", "NearbyInteraction", "NetworkExtension", "NotificationCenter", "OpenGL", "PassKit", "PdfKit", "PencilKit", "Phase", "Photos", "PhotosUI", "PrintCore", "PushKit", "QTKit", "QuartzComposer", "QuickLook", "QuickLookThumbnailing", "QuickLookUI", "ReplayKit", "SafariServices", "ScreenCaptureKit", "ScreenTime", "ScriptingBridge", "SearchKit", "Security", "SharedWithYouCore", "Social", "Speech", "SystemConfiguration", "UserNotifications", "UserNotificationsUI", "VideoSubscriberAccount", "VideoToolbox", "Vision", "WebKit", "WKWebKit"};
internal readonly HashSet<string> watchosframeworks = new HashSet<string> {"Accessibility", "Accelerate", "AuthenticationServices", "AVFoundation", "CoreBluetooth", "CoreData", "CoreFoundation", "CoreMedia", "CoreML", "CoreVideo", "Compression", "DeviceCheck", "Foundation", "GameKit", "NaturalLanguage", "Network", "OSLog", "SceneKit", "ShazamKit", "SoundAnalysis", "SpriteKit", "StoreKit", "UniformTypeIdentifiers", "CallKit", "Chip", "ClockKit", "CloudKit", "Contacts", "CoreGraphics", "CoreLocation", "CoreMotion", "CoreText", "EventKit", "HealthKit", "HomeKit", "ImageIO", "Intents", "MapKit", "MediaPlayer", "MobileCoreServices", "NearbyInteraction", "PassKit", "PushKit", "Security", "UIKit", "XKit", "UserNotifications", "WatchConnectivity", "WatchKit"};
internal readonly HashSet<string> tvosframeworks = new HashSet<string> {"Accessibility", "Accelerate", "AuthenticationServices", "AVFoundation", "CoreBluetooth", "CoreData", "CoreFoundation", "CoreMedia", "CoreML", "CoreVideo", "Compression", "DeviceCheck", "Foundation", "GameKit", "NaturalLanguage", "Network", "OSLog", "SceneKit", "ShazamKit", "SoundAnalysis", "SpriteKit", "StoreKit", "UniformTypeIdentifiers", "AVKit", "AdSupport", "AppTrackingTransparency", "AudioToolbox", "AudioUnit", "BackgroundTasks", "CFNetwork", "Chip", "CloudKit", "CoreAnimation", "CoreGraphics", "CoreHaptics", "CoreImage", "CoreLocation", "CoreSpotlight", "CoreText", "ExternalAccessory", "GLKit", "GameController", "GameplayKit", "HomeKit", "ImageIO", "Intents", "IOSurface", "JavaScriptCore", "LinkPresentation", "MapKit", "MediaAccessibility", "MediaPlayer", "MediaToolbox", "Metal", "MetalKit", "MetalPerformanceShaders", "MetalPerformanceShadersGraph", "MLCompute", "MobileCoreServices", "ModelIO", "MultipeerConnectivity", "OpenGLES", "Photos", "PhotosUI", "ReplayKit", "Security", "SystemConfiguration", "TVMLKit", "TVUIKit", "TVServices", "UIKit", "XKit", "UserNotifications", "VideoSubscriberAccount", "VideoToolbox", "Vision"};
@@ -60,6 +60,7 @@ partial class Frameworks {
bool? _CoreVideo;
bool? _CoreWlan;
bool? _DeviceCheck;
+ bool? _DeviceDiscoveryExtension;
bool? _EventKit;
bool? _EventKitUI;
bool? _ExecutionPolicy;
@@ -221,6 +222,7 @@ partial class Frameworks {
public bool HaveCoreVideo { get { if (!_CoreVideo.HasValue) _CoreVideo = GetValue ("CoreVideo"); return _CoreVideo.Value; } }
public bool HaveCoreWlan { get { if (!_CoreWlan.HasValue) _CoreWlan = GetValue ("CoreWlan"); return _CoreWlan.Value; } }
public bool HaveDeviceCheck { get { if (!_DeviceCheck.HasValue) _DeviceCheck = GetValue ("DeviceCheck"); return _DeviceCheck.Value; } }
+ public bool HaveDeviceDiscoveryExtension { get { if (!_DeviceDiscoveryExtension.HasValue) _DeviceDiscoveryExtension = GetValue ("DeviceDiscoveryExtension"); return _DeviceDiscoveryExtension.Value; } }
public bool HaveEventKit { get { if (!_EventKit.HasValue) _EventKit = GetValue ("EventKit"); return _EventKit.Value; } }
public bool HaveEventKitUI { get { if (!_EventKitUI.HasValue) _EventKitUI = GetValue ("EventKitUI"); return _EventKitUI.Value; } }
public bool HaveExecutionPolicy { get { if (!_ExecutionPolicy.HasValue) _ExecutionPolicy = GetValue ("ExecutionPolicy"); return _ExecutionPolicy.Value; } }
diff --git a/new/ios/native/DeviceDiscoveryExtension/DDDevice.g.cs b/new/ios/native/DeviceDiscoveryExtension/DDDevice.g.cs
new file mode 100644
index 0000000..82f928b
--- /dev/null
+++ b/new/ios/native/DeviceDiscoveryExtension/DDDevice.g.cs
@@ -0,0 +1,488 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using NewsstandKit;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace DeviceDiscoveryExtension {
+ [Register("DDDevice", true)]
+ [Unavailable (PlatformName.MacOSX, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.MacCatalyst, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
+ public unsafe partial class DDDevice : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ #if ARCH_32
+ #pragma warning disable 649
+ static readonly IntPtr class_ptr;
+ #pragma warning restore 649
+ #else
+ static readonly IntPtr class_ptr = Class.GetHandle ("DDDevice");
+ #endif
+ public override IntPtr ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected DDDevice (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal DDDevice (IntPtr handle) : base (handle)
+ {
+ }
+
+ [Export ("initWithDisplayName:category:protocolType:identifier:")]
+ [DesignatedInitializer]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public DDDevice (string displayName, DDDeviceCategory category, global::UniformTypeIdentifiers.UTType protocolType, string identifier)
+ : base (NSObjectFlag.Empty)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (displayName is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (displayName));
+ var protocolType__handle__ = protocolType!.GetNonNullHandle (nameof (protocolType));
+ if (identifier is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (identifier));
+ var nsdisplayName = CFString.CreateNative (displayName);
+ var nsidentifier = CFString.CreateNative (identifier);
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr (this.Handle, Selector.GetHandle ("initWithDisplayName:category:protocolType:identifier:"), nsdisplayName, (IntPtr) (long) category, protocolType__handle__, nsidentifier), "initWithDisplayName:category:protocolType:identifier:");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_IntPtr (this.SuperHandle, Selector.GetHandle ("initWithDisplayName:category:protocolType:identifier:"), nsdisplayName, (IntPtr) (long) category, protocolType__handle__, nsidentifier), "initWithDisplayName:category:protocolType:identifier:");
+ }
+ CFString.ReleaseNative (nsdisplayName);
+ CFString.ReleaseNative (nsidentifier);
+ #endif
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual NSUuid? BluetoothIdentifier {
+ [Export ("bluetoothIdentifier", ArgumentSemantic.Retain)]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ NSUuid? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<NSUuid> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("bluetoothIdentifier")))!;
+ } else {
+ ret = Runtime.GetNSObject<NSUuid> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("bluetoothIdentifier")))!;
+ }
+ return ret!;
+ #endif
+ }
+ [Export ("setBluetoothIdentifier:", ArgumentSemantic.Retain)]
+ set {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ var value__handle__ = value.GetHandle ();
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("setBluetoothIdentifier:"), value__handle__);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("setBluetoothIdentifier:"), value__handle__);
+ }
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual DDDeviceCategory Category {
+ [Export ("category", ArgumentSemantic.UnsafeUnretained)]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ DDDeviceCategory ret;
+ if (IsDirectBinding) {
+ ret = (DeviceDiscoveryExtension.DDDeviceCategory) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("category"));
+ } else {
+ ret = (DeviceDiscoveryExtension.DDDeviceCategory) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("category"));
+ }
+ return ret!;
+ #endif
+ }
+ [Export ("setCategory:", ArgumentSemantic.UnsafeUnretained)]
+ set {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("setCategory:"), (IntPtr) (long) value);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("setCategory:"), (IntPtr) (long) value);
+ }
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual string DisplayName {
+ [Export ("displayName")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (IsDirectBinding) {
+ return CFString.FromHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("displayName")))!;
+ } else {
+ return CFString.FromHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("displayName")))!;
+ }
+ #endif
+ }
+ [Export ("setDisplayName:")]
+ set {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (value is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (value));
+ var nsvalue = CFString.CreateNative (value);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("setDisplayName:"), nsvalue);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("setDisplayName:"), nsvalue);
+ }
+ CFString.ReleaseNative (nsvalue);
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual string Identifier {
+ [Export ("identifier")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (IsDirectBinding) {
+ return CFString.FromHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("identifier")))!;
+ } else {
+ return CFString.FromHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("identifier")))!;
+ }
+ #endif
+ }
+ [Export ("setIdentifier:")]
+ set {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (value is null)
+ ObjCRuntime.ThrowHelper.ThrowArgumentNullException (nameof (value));
+ var nsvalue = CFString.CreateNative (value);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("setIdentifier:"), nsvalue);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("setIdentifier:"), nsvalue);
+ }
+ CFString.ReleaseNative (nsvalue);
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual string? MediaContentSubtitle {
+ [Export ("mediaContentSubtitle")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (IsDirectBinding) {
+ return CFString.FromHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("mediaContentSubtitle")))!;
+ } else {
+ return CFString.FromHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("mediaContentSubtitle")))!;
+ }
+ #endif
+ }
+ [Export ("setMediaContentSubtitle:")]
+ set {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ var nsvalue = CFString.CreateNative (value);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("setMediaContentSubtitle:"), nsvalue);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("setMediaContentSubtitle:"), nsvalue);
+ }
+ CFString.ReleaseNative (nsvalue);
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual string? MediaContentTitle {
+ [Export ("mediaContentTitle")]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (IsDirectBinding) {
+ return CFString.FromHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("mediaContentTitle")))!;
+ } else {
+ return CFString.FromHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("mediaContentTitle")))!;
+ }
+ #endif
+ }
+ [Export ("setMediaContentTitle:")]
+ set {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ var nsvalue = CFString.CreateNative (value);
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("setMediaContentTitle:"), nsvalue);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("setMediaContentTitle:"), nsvalue);
+ }
+ CFString.ReleaseNative (nsvalue);
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual DDDeviceMediaPlaybackState MediaPlaybackState {
+ [Export ("mediaPlaybackState", ArgumentSemantic.UnsafeUnretained)]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ DDDeviceMediaPlaybackState ret;
+ if (IsDirectBinding) {
+ ret = (DeviceDiscoveryExtension.DDDeviceMediaPlaybackState) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("mediaPlaybackState"));
+ } else {
+ ret = (DeviceDiscoveryExtension.DDDeviceMediaPlaybackState) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("mediaPlaybackState"));
+ }
+ return ret!;
+ #endif
+ }
+ [Export ("setMediaPlaybackState:", ArgumentSemantic.UnsafeUnretained)]
+ set {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("setMediaPlaybackState:"), (IntPtr) (long) value);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("setMediaPlaybackState:"), (IntPtr) (long) value);
+ }
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual DDDeviceProtocol Protocol {
+ [Export ("protocol", ArgumentSemantic.UnsafeUnretained)]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ DDDeviceProtocol ret;
+ if (IsDirectBinding) {
+ ret = (DeviceDiscoveryExtension.DDDeviceProtocol) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("protocol"));
+ } else {
+ ret = (DeviceDiscoveryExtension.DDDeviceProtocol) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("protocol"));
+ }
+ return ret!;
+ #endif
+ }
+ [Export ("setProtocol:", ArgumentSemantic.UnsafeUnretained)]
+ set {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("setProtocol:"), (IntPtr) (long) value);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("setProtocol:"), (IntPtr) (long) value);
+ }
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual global::UniformTypeIdentifiers.UTType ProtocolType {
+ [Export ("protocolType", ArgumentSemantic.Retain)]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ global::UniformTypeIdentifiers.UTType? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<global::UniformTypeIdentifiers.UTType> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("protocolType")))!;
+ } else {
+ ret = Runtime.GetNSObject<global::UniformTypeIdentifiers.UTType> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("protocolType")))!;
+ }
+ return ret!;
+ #endif
+ }
+ [Export ("setProtocolType:", ArgumentSemantic.Retain)]
+ set {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ var value__handle__ = value!.GetNonNullHandle (nameof (value));
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("setProtocolType:"), value__handle__);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("setProtocolType:"), value__handle__);
+ }
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual DDDeviceState State {
+ [Export ("state", ArgumentSemantic.UnsafeUnretained)]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ DDDeviceState ret;
+ if (IsDirectBinding) {
+ ret = (DeviceDiscoveryExtension.DDDeviceState) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("state"));
+ } else {
+ ret = (DeviceDiscoveryExtension.DDDeviceState) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("state"));
+ }
+ return ret!;
+ #endif
+ }
+ [Export ("setState:", ArgumentSemantic.UnsafeUnretained)]
+ set {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("setState:"), (IntPtr) (long) value);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("setState:"), (IntPtr) (long) value);
+ }
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual NSData? TxtRecordData {
+ [Export ("txtRecordData", ArgumentSemantic.Copy)]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ NSData? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<NSData> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("txtRecordData")))!;
+ } else {
+ ret = Runtime.GetNSObject<NSData> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("txtRecordData")))!;
+ }
+ return ret!;
+ #endif
+ }
+ [Export ("setTxtRecordData:", ArgumentSemantic.Copy)]
+ set {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ var value__handle__ = value.GetHandle ();
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("setTxtRecordData:"), value__handle__);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("setTxtRecordData:"), value__handle__);
+ }
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual NSUrl Url {
+ [Export ("url", ArgumentSemantic.Copy)]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ NSUrl? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<NSUrl> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("url")))!;
+ } else {
+ ret = Runtime.GetNSObject<NSUrl> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("url")))!;
+ }
+ return ret!;
+ #endif
+ }
+ [Export ("setUrl:", ArgumentSemantic.Copy)]
+ set {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ var value__handle__ = value!.GetNonNullHandle (nameof (value));
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("setUrl:"), value__handle__);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("setUrl:"), value__handle__);
+ }
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ internal virtual global::System.IntPtr _NetworkEndpoint {
+ [Export ("networkEndpoint", ArgumentSemantic.Retain)]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (IsDirectBinding) {
+ return global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("networkEndpoint"));
+ } else {
+ return global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("networkEndpoint"));
+ }
+ #endif
+ }
+ [Export ("setNetworkEndpoint:", ArgumentSemantic.Retain)]
+ set {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("setNetworkEndpoint:"), value);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("setNetworkEndpoint:"), value);
+ }
+ #endif
+ }
+ }
+ } /* class DDDevice */
+}
diff --git a/new/ios/native/DeviceDiscoveryExtension/DDDeviceCategory.g.cs b/new/ios/native/DeviceDiscoveryExtension/DDDeviceCategory.g.cs
new file mode 100644
index 0000000..73520ed
--- /dev/null
+++ b/new/ios/native/DeviceDiscoveryExtension/DDDeviceCategory.g.cs
@@ -0,0 +1,65 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using NewsstandKit;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace DeviceDiscoveryExtension {
+ [Unavailable (PlatformName.MacOSX, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.MacCatalyst, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Native]
+ public enum DDDeviceCategory : long {
+ HiFiSpeaker = 0,
+ HiFiSpeakerMultiple = 1,
+ TvWithMediaBox = 2,
+ Tv = 3,
+ LaptopComputer = 4,
+ DesktopComputer = 5,
+ }
+}
diff --git a/new/ios/native/DeviceDiscoveryExtension/DDDeviceEvent.g.cs b/new/ios/native/DeviceDiscoveryExtension/DDDeviceEvent.g.cs
new file mode 100644
index 0000000..a8c9f1f
--- /dev/null
+++ b/new/ios/native/DeviceDiscoveryExtension/DDDeviceEvent.g.cs
@@ -0,0 +1,130 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using NewsstandKit;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace DeviceDiscoveryExtension {
+ [Register("DDDeviceEvent", true)]
+ [Unavailable (PlatformName.MacOSX, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.MacCatalyst, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
+ public unsafe partial class DDDeviceEvent : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ #if ARCH_32
+ #pragma warning disable 649
+ static readonly IntPtr class_ptr;
+ #pragma warning restore 649
+ #else
+ static readonly IntPtr class_ptr = Class.GetHandle ("DDDeviceEvent");
+ #endif
+ public override IntPtr ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected DDDeviceEvent (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal DDDeviceEvent (IntPtr handle) : base (handle)
+ {
+ }
+
+ [Export ("initWithEventType:device:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public DDDeviceEvent (DDEventType type, DDDevice device)
+ : base (NSObjectFlag.Empty)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ var device__handle__ = device!.GetNonNullHandle (nameof (device));
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr (this.Handle, Selector.GetHandle ("initWithEventType:device:"), (IntPtr) (long) type, device__handle__), "initWithEventType:device:");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr (this.SuperHandle, Selector.GetHandle ("initWithEventType:device:"), (IntPtr) (long) type, device__handle__), "initWithEventType:device:");
+ }
+ #endif
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual DDDevice Device {
+ [Export ("device", ArgumentSemantic.Retain)]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ DDDevice? ret;
+ if (IsDirectBinding) {
+ ret = Runtime.GetNSObject<DDDevice> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("device")))!;
+ } else {
+ ret = Runtime.GetNSObject<DDDevice> (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("device")))!;
+ }
+ return ret!;
+ #endif
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual DDEventType EventType {
+ [Export ("eventType", ArgumentSemantic.UnsafeUnretained)]
+ get {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ DDEventType ret;
+ if (IsDirectBinding) {
+ ret = (DeviceDiscoveryExtension.DDEventType) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, Selector.GetHandle ("eventType"));
+ } else {
+ ret = (DeviceDiscoveryExtension.DDEventType) (long) global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, Selector.GetHandle ("eventType"));
+ }
+ return ret!;
+ #endif
+ }
+ }
+ } /* class DDDeviceEvent */
+}
diff --git a/new/ios/native/DeviceDiscoveryExtension/DDDeviceMediaPlaybackState.g.cs b/new/ios/native/DeviceDiscoveryExtension/DDDeviceMediaPlaybackState.g.cs
new file mode 100644
index 0000000..06dfbc0
--- /dev/null
+++ b/new/ios/native/DeviceDiscoveryExtension/DDDeviceMediaPlaybackState.g.cs
@@ -0,0 +1,62 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using NewsstandKit;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace DeviceDiscoveryExtension {
+ [Unavailable (PlatformName.MacOSX, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.MacCatalyst, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Native]
+ public enum DDDeviceMediaPlaybackState : long {
+ NoContent = 0,
+ Paused = 1,
+ Playing = 2,
+ }
+}
diff --git a/new/ios/native/DeviceDiscoveryExtension/DDDeviceProtocol.g.cs b/new/ios/native/DeviceDiscoveryExtension/DDDeviceProtocol.g.cs
new file mode 100644
index 0000000..e8633e7
--- /dev/null
+++ b/new/ios/native/DeviceDiscoveryExtension/DDDeviceProtocol.g.cs
@@ -0,0 +1,61 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using NewsstandKit;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace DeviceDiscoveryExtension {
+ [Unavailable (PlatformName.MacOSX, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.MacCatalyst, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Native]
+ public enum DDDeviceProtocol : long {
+ Invalid = 0,
+ Dial = 1,
+ }
+}
diff --git a/new/ios/native/DeviceDiscoveryExtension/DDDeviceProtocolStrings.g.cs b/new/ios/native/DeviceDiscoveryExtension/DDDeviceProtocolStrings.g.cs
new file mode 100644
index 0000000..daa588e
--- /dev/null
+++ b/new/ios/native/DeviceDiscoveryExtension/DDDeviceProtocolStrings.g.cs
@@ -0,0 +1,78 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using NewsstandKit;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace DeviceDiscoveryExtension {
+ [Unavailable (PlatformName.MacOSX, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.MacCatalyst, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
+ public unsafe static partial class DDDeviceProtocolStrings {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static NSString? _Dial;
+ [Field ("DDDeviceProtocolStringDIAL", "DeviceDiscoveryExtension")]
+ public static NSString Dial {
+ get {
+ if (_Dial is null)
+ _Dial = Dlfcn.GetStringConstant (Libraries.DeviceDiscoveryExtension.Handle, "DDDeviceProtocolStringDIAL")!;
+ return _Dial;
+ }
+ }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static NSString? _Invalid;
+ [Field ("DDDeviceProtocolStringInvalid", "DeviceDiscoveryExtension")]
+ public static NSString Invalid {
+ get {
+ if (_Invalid is null)
+ _Invalid = Dlfcn.GetStringConstant (Libraries.DeviceDiscoveryExtension.Handle, "DDDeviceProtocolStringInvalid")!;
+ return _Invalid;
+ }
+ }
+ } /* class DDDeviceProtocolStrings */
+}
diff --git a/new/ios/native/DeviceDiscoveryExtension/DDDeviceState.g.cs b/new/ios/native/DeviceDiscoveryExtension/DDDeviceState.g.cs
new file mode 100644
index 0000000..048019f
--- /dev/null
+++ b/new/ios/native/DeviceDiscoveryExtension/DDDeviceState.g.cs
@@ -0,0 +1,64 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using NewsstandKit;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace DeviceDiscoveryExtension {
+ [Unavailable (PlatformName.MacOSX, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.MacCatalyst, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Native]
+ public enum DDDeviceState : long {
+ Invalid = 0,
+ Activating = 10,
+ Activated = 20,
+ Authorized = 25,
+ Invalidating = 30,
+ }
+}
diff --git a/new/ios/native/DeviceDiscoveryExtension/DDDiscoverySession.g.cs b/new/ios/native/DeviceDiscoveryExtension/DDDiscoverySession.g.cs
new file mode 100644
index 0000000..7ce9f26
--- /dev/null
+++ b/new/ios/native/DeviceDiscoveryExtension/DDDiscoverySession.g.cs
@@ -0,0 +1,111 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using NewsstandKit;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace DeviceDiscoveryExtension {
+ [Register("DDDiscoverySession", true)]
+ [Unavailable (PlatformName.MacOSX, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.MacCatalyst, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
+ public unsafe partial class DDDiscoverySession : NSObject {
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ #if ARCH_32
+ #pragma warning disable 649
+ static readonly IntPtr class_ptr;
+ #pragma warning restore 649
+ #else
+ static readonly IntPtr class_ptr = Class.GetHandle ("DDDiscoverySession");
+ #endif
+ public override IntPtr ClassHandle { get { return class_ptr; } }
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ [Export ("init")]
+ public DDDiscoverySession () : base (NSObjectFlag.Empty)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ if (IsDirectBinding) {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend (this.Handle, global::ObjCRuntime.Selector.GetHandle ("init")), "init");
+ } else {
+ InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper (this.SuperHandle, global::ObjCRuntime.Selector.GetHandle ("init")), "init");
+ }
+ #endif
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected DDDiscoverySession (NSObjectFlag t) : base (t)
+ {
+ }
+
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ [EditorBrowsable (EditorBrowsableState.Advanced)]
+ protected internal DDDiscoverySession (IntPtr handle) : base (handle)
+ {
+ }
+
+ [Export ("reportEvent:")]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ public virtual void ReportEvent (DDDeviceEvent inEvent)
+ {
+ #if ARCH_32
+ throw new PlatformNotSupportedException ("This API is not supported on this version of iOS");
+ #else
+ var inEvent__handle__ = inEvent!.GetNonNullHandle (nameof (inEvent));
+ if (IsDirectBinding) {
+ global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("reportEvent:"), inEvent__handle__);
+ } else {
+ global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("reportEvent:"), inEvent__handle__);
+ }
+ #endif
+ }
+ } /* class DDDiscoverySession */
+}
diff --git a/new/ios/native/DeviceDiscoveryExtension/DDErrorCode.g.cs b/new/ios/native/DeviceDiscoveryExtension/DDErrorCode.g.cs
new file mode 100644
index 0000000..946b600
--- /dev/null
+++ b/new/ios/native/DeviceDiscoveryExtension/DDErrorCode.g.cs
@@ -0,0 +1,84 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using NewsstandKit;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace DeviceDiscoveryExtension {
+ [Unavailable (PlatformName.MacOSX, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.MacCatalyst, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Native]
+ public enum DDErrorCode : long {
+ Success = 0,
+ Unknown = 350000,
+ BadParameter = 350001,
+ Unsupported = 350002,
+ Timeout = 350003,
+ Internal = 350004,
+ MissingEntitlement = 350005,
+ Permission = 350006,
+ Next = 350007,
+ }
+ [Unavailable (PlatformName.MacOSX, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.MacCatalyst, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
+ [BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
+ static public partial class DDErrorCodeExtensions {
+ [Field ("DDErrorDomain", "DeviceDiscoveryExtension")]
+ static NSString? _domain;
+ public static NSString? GetDomain (this DDErrorCode self)
+ {
+ if (_domain is null)
+ _domain = Dlfcn.GetStringConstant (Libraries.DeviceDiscoveryExtension.Handle, "DDErrorDomain");
+ return _domain;
+ }
+ }
+}
diff --git a/new/ios/native/DeviceDiscoveryExtension/DDEventType.g.cs b/new/ios/native/DeviceDiscoveryExtension/DDEventType.g.cs
new file mode 100644
index 0000000..731e622
--- /dev/null
+++ b/new/ios/native/DeviceDiscoveryExtension/DDEventType.g.cs
@@ -0,0 +1,63 @@
+//
+// Auto-generated from generator.cs, do not edit
+//
+// We keep references to objects, so warning 414 is expected
+#pragma warning disable 414
+using System;
+using System.Drawing;
+using System.Diagnostics;
+using System.ComponentModel;
+using System.Threading.Tasks;
+using System.Runtime.InteropServices;
+using System.Diagnostics.CodeAnalysis;
+using UIKit;
+using GLKit;
+using Metal;
+using CoreML;
+using MapKit;
+using Photos;
+using ModelIO;
+using Network;
+using SceneKit;
+using Contacts;
+using Security;
+using Messages;
+using AudioUnit;
+using CoreVideo;
+using CoreMedia;
+using QuickLook;
+using CoreImage;
+using SpriteKit;
+using Foundation;
+using CoreMotion;
+using ObjCRuntime;
+using AddressBook;
+using MediaPlayer;
+using GameplayKit;
+using CoreGraphics;
+using CoreLocation;
+using AVFoundation;
+using NewsstandKit;
+using FileProvider;
+using CoreAnimation;
+using CoreFoundation;
+using NetworkExtension;
+using MetalPerformanceShadersGraph;
+#nullable enable
+#if !NET
+using NativeHandle = System.IntPtr;
+#endif
+namespace DeviceDiscoveryExtension {
+ [Unavailable (PlatformName.MacOSX, ObjCRuntime.PlatformArchitecture.All)]
+ [Introduced (PlatformName.iOS, 16,0, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.MacCatalyst, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Unavailable (PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All)]
+ [Native]
+ public enum DDEventType : long {
+ Unknown = 0,
+ DeviceFound = 40,
+ DeviceLost = 41,
+ DeviceChanged = 42,
+ }
+}
diff --git a/old/ios/native/ObjCRuntime/Libraries.g.cs b/new/ios/native/ObjCRuntime/Libraries.g.cs
index dc2623e..d3a419b 100644
--- a/old/ios/native/ObjCRuntime/Libraries.g.cs
+++ b/new/ios/native/ObjCRuntime/Libraries.g.cs
@@ -173,6 +173,9 @@ namespace ObjCRuntime {
static public class DeviceCheck {
static public readonly IntPtr Handle = Dlfcn._dlopen (Constants.DeviceCheckLibrary, 0);
}
+ static public class DeviceDiscoveryExtension {
+ static public readonly IntPtr Handle = Dlfcn._dlopen (Constants.DeviceDiscoveryExtensionLibrary, 0);
+ }
static public class EventKit {
static public readonly IntPtr Handle = Dlfcn._dlopen (Constants.EventKitLibrary, 0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment