Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions src/QuartzComposer/QCComposition.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

using System;
using System.ComponentModel;

using Foundation;
using ObjCRuntime;

#nullable enable

namespace QuartzComposer;

partial class QCComposition {
#if !XAMCORE_5_0
[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[ObsoletedOSPlatform ("macos10.14", "Use 'Metal' instead.")]
Comment thread
rolfbjarne marked this conversation as resolved.
[SupportedOSPlatform ("macos")]
[EditorBrowsable (EditorBrowsableState.Never)]
[Obsolete ("This field is always null.")]
public static NSString? InputRSSArticleDurationKey {
[ObsoletedOSPlatform ("macos10.14", "Use 'Metal' instead.")]
[SupportedOSPlatform ("macos")]
get => null;
}

[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[ObsoletedOSPlatform ("macos10.14", "Use 'Metal' instead.")]
[SupportedOSPlatform ("macos")]
[EditorBrowsable (EditorBrowsableState.Never)]
[Obsolete ("This field is always null.")]
public static NSString? InputRSSFeedURLKey {
[ObsoletedOSPlatform ("macos10.14", "Use 'Metal' instead.")]
[SupportedOSPlatform ("macos")]
get => null;
}

[BindingImpl (BindingImplOptions.GeneratedCode | BindingImplOptions.Optimizable)]
[ObsoletedOSPlatform ("macos10.14", "Use 'Metal' instead.")]
[SupportedOSPlatform ("macos")]
[EditorBrowsable (EditorBrowsableState.Never)]
[Obsolete ("This field is always null.")]
public static NSString? ProtocolRSSVisualizer {
[ObsoletedOSPlatform ("macos10.14", "Use 'Metal' instead.")]
[SupportedOSPlatform ("macos")]
get => null;
}
#endif // !XAMCORE_5_0
}
5 changes: 5 additions & 0 deletions src/frameworks.sources
Original file line number Diff line number Diff line change
Expand Up @@ -1478,6 +1478,11 @@ PRINTCORE_SOURCES = \
PUSHTOTALK_SOURCES = \
PushToTalk/Compat.cs \

# QuartzComposer

QUARTZCOMPOSER_SOURCES = \
QuartzComposer/QCComposition.cs \

# QuickLook

QUICKLOOK_SOURCES = \
Expand Down
26 changes: 7 additions & 19 deletions src/quartzcomposer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -158,19 +158,10 @@ interface QCComposition : NSCopying {
[Field ("QCCompositionInputDestinationImageKey")]
NSString InputDestinationImageKey { get; }

/// <summary>To be added.</summary>
/// <value>To be added.</value>
/// <remarks>To be added.</remarks>
[Deprecated (PlatformName.MacOSX, 10, 14, message: "Use 'Metal' instead.")]
[Field ("QCCompositionInputRSSFeedURLKey")]
NSString InputRSSFeedURLKey { get; }

/// <summary>To be added.</summary>
/// <value>To be added.</value>
/// <remarks>To be added.</remarks>
[Deprecated (PlatformName.MacOSX, 10, 14, message: "Use 'Metal' instead.")]
[Field ("QCCompositionInputRSSArticleDurationKey")]
NSString InputRSSArticleDurationKey { get; }
#if !XAMCORE_5_0
// The 'InputRSSFeedURLKey' property has manual bindings.
// The 'InputRSSArticleDurationKey' property has manual bindings.
#endif

/// <summary>To be added.</summary>
/// <value>To be added.</value>
Expand Down Expand Up @@ -280,12 +271,9 @@ interface QCComposition : NSCopying {
[Field ("QCCompositionProtocolScreenSaver")]
NSString ProtocolScreenSaver { get; }

/// <summary>To be added.</summary>
/// <value>To be added.</value>
/// <remarks>To be added.</remarks>
[Deprecated (PlatformName.MacOSX, 10, 14, message: "Use 'Metal' instead.")]
[Field ("QCCompositionProtocolRSSVisualizer")]
NSString ProtocolRSSVisualizer { get; }
#if !XAMCORE_5_0
// The 'ProtocolRSSVisualizer' property has manual bindings.
#endif

/// <summary>To be added.</summary>
/// <value>To be added.</value>
Expand Down
6 changes: 0 additions & 6 deletions tests/introspection/MacApiFieldTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -159,12 +159,6 @@ protected override bool Skip (string constantName, string? libraryName)
// kCLErrorUserInfoAlternateRegionKey also returns null on iOS
case "kCLErrorUserInfoAlternateRegionKey":
return true;
case "QCCompositionInputRSSArticleDurationKey":
case "QCCompositionInputRSSFeedURLKey":
case "QCCompositionProtocolRSSVisualizer":
if (Mac.CheckSystemVersion (10, 14))
return true;
goto default;
default:
return base.Skip (constantName, libraryName);
}
Expand Down
Loading