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/20550a20b71abb0f0cdfba1ccec11d16 to your computer and use it in GitHub Desktop.
Save vs-mobiletools-engineering-service2/20550a20b71abb0f0cdfba1ccec11d16 to your computer and use it in GitHub Desktop.
previous-api-comparison/ios-api-diff.md
title description author ms.author ms.date ms.topic ms.assetid ms.prod
Xamarin.iOS SDK API diff
List of API changes for Xamarin.iOS.
spouliot
sepoulio
9/6/2022
article
f7934223-2a8c-d5d4-788f-79d2f8610aa7
xamarin

Xamarin.iOS SDK API diff

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 (IntPtr 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 IntPtr 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 (IntPtr handle);
	public DDDeviceEvent (DDEventType type, DDDevice device);
	// properties
	public override IntPtr 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 (IntPtr handle);
	// properties
	public override IntPtr 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