-
Notifications
You must be signed in to change notification settings - Fork 512
DeviceDiscoveryExtension iOS xcode14.0 beta4
Israel Soto edited this page Aug 24, 2022
·
3 revisions
#DeviceDiscoveryExtension.framework https://github.com/xamarin/xamarin-macios/pull/15741
diff -ruN /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/DeviceDiscoveryExtension.framework/Headers/DDDevice.h /Applications/Xcode_14.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/DeviceDiscoveryExtension.framework/Headers/DDDevice.h
--- /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/DeviceDiscoveryExtension.framework/Headers/DDDevice.h 2022-06-30 22:00:07.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/DeviceDiscoveryExtension.framework/Headers/DDDevice.h 2022-07-25 15:37:29.000000000 -0400
@@ -31,9 +31,9 @@
typedef NS_ENUM( NSInteger, DDDeviceProtocol )
{
- DDDeviceProtocolInvalid = 0, /// Invalid protocol.
- DDDeviceProtocolDIAL NS_SWIFT_NAME(DDDeviceProtocol.dial) = 1, /// DIAL protocol.
- };
+ DDDeviceProtocolInvalid NS_SWIFT_NAME(invalid) = 0, /// Invalid protocol.
+ DDDeviceProtocolDIAL NS_SWIFT_NAME(dial) = 1, /// DIAL protocol.
+ } NS_SWIFT_NAME(DDDevice.Protocol);
/// Converts a device protocol type to a string for logging, etc.
DD_EXTERN
@@ -74,6 +74,20 @@
NSString * DDDeviceStateToString( DDDeviceState inValue );
//===========================================================================================================================
+/// State of media playback on the device.
+typedef NS_ENUM( NSInteger, DDDeviceMediaPlaybackState )
+{
+ DDDeviceMediaPlaybackStateNoContent = 0, /// Not playing any media content.
+ DDDeviceMediaPlaybackStatePaused = 1, /// Media content playback is paused.
+ DDDeviceMediaPlaybackStatePlaying = 2, /// Media content is playing.
+} NS_SWIFT_NAME(DDDevice.MediaPlaybackState);
+
+/// Converts a device media playback state to a string for logging, etc.
+DD_EXTERN
+API_AVAILABLE( ios( 16.0 ) )
+NSString * DDDeviceMediaPlaybackStateToString( DDDeviceMediaPlaybackState inValue );
+
+//===========================================================================================================================
/// DeviceDiscoveryExtension device.
DD_EXTERN
API_AVAILABLE( ios( 16.0 ) )
@@ -118,6 +132,15 @@
/// The URL must have a valid hostname, no query parameters, and a maximum size of 100 bytes.
@property (readwrite, copy, nonatomic) NSURL *url;
+/// Current state of media playback on this device.
+@property (readwrite, assign, nonatomic) DDDeviceMediaPlaybackState mediaPlaybackState;
+
+/// Title of the media content being played.
+@property (readwrite, copy, nullable, nonatomic) NSString *mediaContentTitle;
+
+/// Subtitle of the media content being played. It can be used to display extra information about the content, such as the name of the artist.
+@property (readwrite, copy, nullable, nonatomic) NSString *mediaContentSubtitle;
+
@end
#ifdef __cplusplus
diff -ruN /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/DeviceDiscoveryExtension.framework/Headers/DDEvent.h /Applications/Xcode_14.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/DeviceDiscoveryExtension.framework/Headers/DDEvent.h
--- /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/DeviceDiscoveryExtension.framework/Headers/DDEvent.h 2022-06-30 22:11:10.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/DeviceDiscoveryExtension.framework/Headers/DDEvent.h 2022-07-25 15:37:29.000000000 -0400
@@ -16,18 +16,17 @@
#endif
@class DDDevice;
-@class DDEvent;
+@class DDDeviceEvent;
//===========================================================================================================================
/// Type of event.
typedef NS_ENUM( NSInteger, DDEventType )
{
- DDEventTypeUnknown = 0, /// Unknown event. Placeholder for initializing event types.
- DDEventTypeDeviceFound = 40, /// [DDDeviceEvent] Device found.
- DDEventTypeDeviceLost = 41, /// [DDDeviceEvent] Device lost.
- DDEventTypeDeviceChanged = 42, /// [DDDeviceEvent] Device changed.
- DDEventTypeDevicesPresentChanged = 50, /// [DDDeviceEvent] Device changed.
-};
+ DDEventTypeUnknown NS_SWIFT_NAME(unknown) = 0, /// Unknown event. Placeholder for initializing event types.
+ DDEventTypeDeviceFound NS_SWIFT_NAME(deviceFound) = 40, /// [DDDeviceEvent] Device found.
+ DDEventTypeDeviceLost NS_SWIFT_NAME(deviceLost) = 41, /// [DDDeviceEvent] Device lost.
+ DDEventTypeDeviceChanged NS_SWIFT_NAME(deviceChanged) = 42, /// [DDDeviceEvent] Device changed.
+} NS_SWIFT_NAME(DDDeviceEvent.EventType);
/// Converts an event to a string for logging, etc.
DD_EXTERN
@@ -35,24 +34,14 @@
NSString * DDEventTypeToString( DDEventType inValue );
/// Invoked when an event occurs.
-typedef void ( ^DDEventHandler )( DDEvent *inEvent );
-
-//===========================================================================================================================
-/// Event for status and other updates.
-DD_EXTERN
-@interface DDEvent : NSObject
-
-/// Type of event. Type may indicate the subclass of DAEvent to provide additional properties.
-@property (readonly, assign, nonatomic) DDEventType eventType;
-
-@end
+typedef void ( ^DDEventHandler )( DDDeviceEvent *inEvent );
//===========================================================================================================================
/// Device-related event (e.g. found, lost).
DD_EXTERN
API_AVAILABLE( ios( 16.0 ) )
-@interface DDDeviceEvent : DDEvent
+@interface DDDeviceEvent : NSObject
/// Initializes a device event.
- (instancetype) initWithEventType:(DDEventType) type device:(DDDevice *) device;
@@ -60,16 +49,8 @@
/// Device found or lost.
@property (readonly, strong, nonatomic) DDDevice *device;
-@end
-
-//===========================================================================================================================
-/// Reports the one or more devices are present changes.
-DD_EXTERN
-API_AVAILABLE( ios( 16.0 ) )
-@interface DDEventDevicesPresent : DDEvent
-
-/// One or more devices are present.
-@property (readonly, assign, nonatomic) BOOL devicesPresent;
+/// Type of event.
+@property (readonly, assign, nonatomic) DDEventType eventType;
@end
diff -ruN /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/DeviceDiscoveryExtension.framework/Headers/DDExtension.h /Applications/Xcode_14.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/DeviceDiscoveryExtension.framework/Headers/DDExtension.h
--- /Applications/Xcode_14.0.0-beta3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/DeviceDiscoveryExtension.framework/Headers/DDExtension.h 2022-06-24 14:54:34.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/DeviceDiscoveryExtension.framework/Headers/DDExtension.h 2022-07-17 18:39:58.000000000 -0400
@@ -23,7 +23,7 @@
@interface DDDiscoverySession : NSObject
/// Reports an event to the host.
-- (void) reportEvent:(DDEvent *) inEvent;
+- (void) reportEvent:(DDDeviceEvent *) inEvent;
@end
- README
- xcode13.0 Binding Status
- xcode13.1 Binding Status
- xcode13.2 Binding Status
- xcode13.3 Binding Status
- xcode13.4 Binding Status
- xcode14.0 Binding Status
- xcode14.1 Binding Status
- xcode14.2 Binding Status
- xcode14.3 Binding Status
- xcode15.0 Binding Status
- xcode15.1 Binding Status
- xcode15.3 Binding Status
- xcode15.4 Binding Status
- xcode16.0 Binding Status
- xcode16.1 Binding Status