/** * @since 16.0 */ declare class DDDevice extends NSObject { static alloc(): DDDevice; // inherited from NSObject static new(): DDDevice; // inherited from NSObject /** * @since 18.0 */ SSID: string; bluetoothIdentifier: NSUUID; category: DDDeviceCategory; /** * @since 18.0 */ deviceSupports: DDDeviceSupports; /** * @since 18.0 */ displayImageName: string; displayName: string; identifier: string; mediaContentSubtitle: string; mediaContentTitle: string; mediaPlaybackState: DDDeviceMediaPlaybackState; networkEndpoint: NSObject & OS_nw_endpoint; protocol: DDDeviceProtocol; protocolType: UTType; state: DDDeviceState; /** * @since 17.0 */ supportsGrouping: boolean; txtRecordData: NSData; url: NSURL; /** * @since 26.0 */ wifiAwareModelName: string; /** * @since 26.0 */ wifiAwareServiceName: string; /** * @since 26.0 */ wifiAwareServiceRole: DDDeviceWiFiAwareServiceRole; /** * @since 26.0 */ wifiAwareVendorName: string; constructor(o: { displayName: string; category: DDDeviceCategory; protocolType: UTType; identifier: string; }); initWithDisplayNameCategoryProtocolTypeIdentifier(displayName: string, category: DDDeviceCategory, protocolType: UTType, identifier: string): this; } declare const enum DDDeviceCategory { HiFiSpeaker = 0, HiFiSpeakerMultiple = 1, TVWithMediaBox = 2, TV = 3, LaptopComputer = 4, DesktopComputer = 5, AccessorySetup = 6 } /** * @since 16.0 */ declare function DDDeviceCategoryToString(inValue: DDDeviceCategory): string; /** * @since 16.0 */ declare class DDDeviceEvent extends NSObject { static alloc(): DDDeviceEvent; // inherited from NSObject static new(): DDDeviceEvent; // inherited from NSObject readonly device: DDDevice; readonly eventType: DDEventType; constructor(o: { eventType: DDEventType; device: DDDevice; }); initWithEventTypeDevice(type: DDEventType, device: DDDevice): this; } declare const enum DDDeviceMediaPlaybackState { NoContent = 0, Paused = 1, Playing = 2 } /** * @since 16.0 */ declare function DDDeviceMediaPlaybackStateToString(inValue: DDDeviceMediaPlaybackState): string; declare const enum DDDeviceProtocol { Invalid = 0, DIAL = 1 } /** * @since 16.0 */ declare var DDDeviceProtocolStringDIAL: string; /** * @since 16.0 */ declare var DDDeviceProtocolStringInvalid: string; /** * @since 16.0 */ declare function DDDeviceProtocolToString(inValue: DDDeviceProtocol): string; declare const enum DDDeviceState { Invalid = 0, Activating = 10, Activated = 20, Authorized = 25, Invalidating = 30 } /** * @since 16.0 */ declare function DDDeviceStateToString(inValue: DDDeviceState): string; declare const enum DDDeviceSupports { BluetoothPairingLE = 2, BluetoothTransportBridging = 4, BluetoothHID = 8 } declare const enum DDDeviceWiFiAwareServiceRole { Subscriber = 10, Publisher = 20 } declare class DDDiscoverySession extends NSObject { static alloc(): DDDiscoverySession; // inherited from NSObject static new(): DDDiscoverySession; // inherited from NSObject reportEvent(inEvent: DDDeviceEvent): void; } /** * @since 16.0 */ declare const enum DDErrorCode { Success = 0, Unknown = 350000, BadParameter = 350001, Unsupported = 350002, Timeout = 350003, Internal = 350004, MissingEntitlement = 350005, Permission = 350006, Next = 350007 } /** * @since 16.0 */ declare var DDErrorDomain: string; declare const enum DDEventType { Unknown = 0, DeviceFound = 40, DeviceLost = 41, DeviceChanged = 42 } /** * @since 16.0 */ declare function DDEventTypeToString(inValue: DDEventType): string;