Skip to content

Instantly share code, notes, and snippets.

@vs-mobiletools-engineering-service2
Created September 6, 2022 18:47
Show Gist options
  • Save vs-mobiletools-engineering-service2/3c72bab82034f453ea2211e443992b2f to your computer and use it in GitHub Desktop.
Save vs-mobiletools-engineering-service2/3c72bab82034f453ea2211e443992b2f to your computer and use it in GitHub Desktop.
previous-api-comparison/diff/dotnet/Microsoft.iOS.Ref/ref/net6.0/Microsoft.iOS.md

API diff: Microsoft.iOS.dll

Microsoft.iOS.dll

Namespace ObjCRuntime

Type Changed: ObjCRuntime.Constants

Added field:

public static const string DeviceDiscoveryExtensionLibrary = "/System/Library/Frameworks/DeviceDiscoveryExtension.framework/DeviceDiscoveryExtension";

New Namespace DeviceDiscoveryExtension

New Type: DeviceDiscoveryExtension.DDDevice

public class DDDevice : Foundation.NSObject {
	// constructors
	protected DDDevice (Foundation.NSObjectFlag t);
	protected DDDevice (ObjCRuntime.NativeHandle handle);
	public DDDevice (string displayName, DDDeviceCategory category, UniformTypeIdentifiers.UTType protocolType, string identifier);
	// properties
	public virtual Foundation.NSUuid BluetoothIdentifier { get; set; }
	public virtual DDDeviceCategory Category { get; set; }
	public override ObjCRuntime.NativeHandle ClassHandle { get; }
	public virtual string DisplayName { get; set; }
	public virtual string Identifier { get; set; }
	public virtual string MediaContentSubtitle { get; set; }
	public virtual string MediaContentTitle { get; set; }
	public virtual DDDeviceMediaPlaybackState MediaPlaybackState { get; set; }
	public Network.NWEndpoint NetworkEndpoint { get; set; }
	public virtual DDDeviceProtocol Protocol { get; set; }
	public virtual UniformTypeIdentifiers.UTType ProtocolType { get; set; }
	public virtual DDDeviceState State { get; set; }
	public virtual Foundation.NSData TxtRecordData { get; set; }
	public virtual Foundation.NSUrl Url { get; set; }
}

New Type: DeviceDiscoveryExtension.DDDeviceCategory

[Serializable]
public enum DDDeviceCategory {
	DesktopComputer = 5,
	HiFiSpeaker = 0,
	HiFiSpeakerMultiple = 1,
	LaptopComputer = 4,
	Tv = 3,
	TvWithMediaBox = 2,
}

New Type: DeviceDiscoveryExtension.DDDeviceEvent

public class DDDeviceEvent : Foundation.NSObject {
	// constructors
	protected DDDeviceEvent (Foundation.NSObjectFlag t);
	protected DDDeviceEvent (ObjCRuntime.NativeHandle handle);
	public DDDeviceEvent (DDEventType type, DDDevice device);
	// properties
	public override ObjCRuntime.NativeHandle ClassHandle { get; }
	public virtual DDDevice Device { get; }
	public virtual DDEventType EventType { get; }
}

New Type: DeviceDiscoveryExtension.DDDeviceMediaPlaybackState

[Serializable]
public enum DDDeviceMediaPlaybackState {
	NoContent = 0,
	Paused = 1,
	Playing = 2,
}

New Type: DeviceDiscoveryExtension.DDDeviceProtocol

[Serializable]
public enum DDDeviceProtocol {
	Dial = 1,
	Invalid = 0,
}

New Type: DeviceDiscoveryExtension.DDDeviceProtocolStrings

public static class DDDeviceProtocolStrings {
	// properties
	public static Foundation.NSString Dial { get; }
	public static Foundation.NSString Invalid { get; }
}

New Type: DeviceDiscoveryExtension.DDDeviceState

[Serializable]
public enum DDDeviceState {
	Activated = 20,
	Activating = 10,
	Authorized = 25,
	Invalid = 0,
	Invalidating = 30,
}

New Type: DeviceDiscoveryExtension.DDDiscoverySession

public class DDDiscoverySession : Foundation.NSObject {
	// constructors
	public DDDiscoverySession ();
	protected DDDiscoverySession (Foundation.NSObjectFlag t);
	protected DDDiscoverySession (ObjCRuntime.NativeHandle handle);
	// properties
	public override ObjCRuntime.NativeHandle ClassHandle { get; }
	// methods
	public virtual void ReportEvent (DDDeviceEvent inEvent);
}

New Type: DeviceDiscoveryExtension.DDErrorCode

[Serializable]
public enum DDErrorCode {
	BadParameter = 350001,
	Internal = 350004,
	MissingEntitlement = 350005,
	Next = 350007,
	Permission = 350006,
	Success = 0,
	Timeout = 350003,
	Unknown = 350000,
	Unsupported = 350002,
}

New Type: DeviceDiscoveryExtension.DDErrorCodeExtensions

public static class DDErrorCodeExtensions {
	// methods
	public static Foundation.NSString GetDomain (this DDErrorCode self);
}

New Type: DeviceDiscoveryExtension.DDEventType

[Serializable]
public enum DDEventType {
	DeviceChanged = 42,
	DeviceFound = 40,
	DeviceLost = 41,
	Unknown = 0,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment