Added field:
public static const string DeviceDiscoveryExtensionLibrary = "/System/Library/Frameworks/DeviceDiscoveryExtension.framework/DeviceDiscoveryExtension";
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; }
}
[Serializable]
public enum DDDeviceCategory {
DesktopComputer = 5,
HiFiSpeaker = 0,
HiFiSpeakerMultiple = 1,
LaptopComputer = 4,
Tv = 3,
TvWithMediaBox = 2,
}
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; }
}
[Serializable]
public enum DDDeviceMediaPlaybackState {
NoContent = 0,
Paused = 1,
Playing = 2,
}
[Serializable]
public enum DDDeviceProtocol {
Dial = 1,
Invalid = 0,
}
public static class DDDeviceProtocolStrings {
// properties
public static Foundation.NSString Dial { get; }
public static Foundation.NSString Invalid { get; }
}
[Serializable]
public enum DDDeviceState {
Activated = 20,
Activating = 10,
Authorized = 25,
Invalid = 0,
Invalidating = 30,
}
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);
}
[Serializable]
public enum DDErrorCode {
BadParameter = 350001,
Internal = 350004,
MissingEntitlement = 350005,
Next = 350007,
Permission = 350006,
Success = 0,
Timeout = 350003,
Unknown = 350000,
Unsupported = 350002,
}
public static class DDErrorCodeExtensions {
// methods
public static Foundation.NSString GetDomain (this DDErrorCode self);
}
[Serializable]
public enum DDEventType {
DeviceChanged = 42,
DeviceFound = 40,
DeviceLost = 41,
Unknown = 0,
}