Skip to content

Commit

Permalink
Remove not needed attrs.
Browse files Browse the repository at this point in the history
  • Loading branch information
mandel-macaque committed Sep 14, 2021
1 parent 656b890 commit de398b7
Showing 1 changed file with 0 additions and 101 deletions.
101 changes: 0 additions & 101 deletions src/AVFoundation/Enums.cs
Expand Up @@ -26,7 +26,6 @@
using System.ComponentModel;
using Foundation;
using ObjCRuntime;
using System.Runtime.Versioning;
using System.Runtime.InteropServices;

namespace AVFoundation {
Expand Down Expand Up @@ -307,20 +306,16 @@ public enum AVAssetImageGeneratorResult : long {
}

#if !XAMCORE_3_0 || MONOMAC
#if !NET
[Unavailable (PlatformName.MacCatalyst)]
[NoTV]
#endif
[Native]
// NSInteger - AVCaptureDevice.h
public enum AVCaptureDeviceTransportControlsPlaybackMode : long {
NotPlaying, Playing
}

#if !NET
[Unavailable (PlatformName.MacCatalyst)]
[NoTV, NoWatch]
#endif
[Native]
// NSInteger - AVCaptureSession.h
public enum AVVideoFieldMode : long {
Expand Down Expand Up @@ -721,32 +716,20 @@ public enum AVContentAuthorizationStatus : long {
NotPossible,
}

#if !NET
[iOS (15,0), TV (15,0), Watch (8,0), Mac (10,10), MacCatalyst (15,0)]
#else
[SupportedOSPlatform ("ios15.0"), SupportedOSPlatform ("tvos15.0"), SupportedOSPlatform ("macos10.10"), SupportedOSPlatform ("maccatalyst15.0")]
#endif
[Native]
public enum AVSampleBufferRequestDirection : long {
Forward = 1,
None = 0,
Reverse = -1,
}

#if !NET
[iOS (15,0), TV (15,0), Watch (8,0), Mac (10,10), MacCatalyst (15,0)]
#else
[SupportedOSPlatform ("ios15.0"), SupportedOSPlatform ("tvos15.0"), SupportedOSPlatform ("macos10.10"), SupportedOSPlatform ("maccatalyst15.0")]
#endif
[Native]
public enum AVSampleBufferRequestMode : long {
Immediate,
Scheduled,
#if !NET
[Mac (10,15)]
#else
[SupportedOSPlatform ("macos10.15")]
#endif
Opportunistic = 2,
}

Expand Down Expand Up @@ -1017,11 +1000,7 @@ public enum AVVideoApertureMode {
EncodedPixels = 2,
}

#if !NET
[NoWatch, NoTV, Mac (12,0), iOS (11,0)]
#else
[UnsupportedOSPlatform ("tvos"), SupportedOSPlatform ("macos12.0"), SupportedOSPlatform ("ios11.0")]
#endif
public enum AVAssetDownloadedAssetEvictionPriority {
[Field ("AVAssetDownloadedAssetEvictionPriorityDefault")]
Default = 0,
Expand All @@ -1039,11 +1018,7 @@ public enum AVAssetWriterInputMediaDataLocation {
BeforeMainMediaDataNotInterleaved = 1,
}

#if !NET
[TV (11,0), NoWatch, Mac (10,13), iOS (11,0), MacCatalyst (15,0)]
#else
[SupportedOSPlatform ("ios11.0"), SupportedOSPlatform ("tvos11.0"), SupportedOSPlatform ("macos10.13"), SupportedOSPlatform ("maccatalyst15.0")]
#endif
public enum AVVideoCodecType {
[Field ("AVVideoCodecTypeH264")]
H264 = 0,
Expand Down Expand Up @@ -1202,11 +1177,7 @@ public enum AVFileTypeProfile {
}

[Native]
#if !NET
[TV (15,0), Watch (8,0), Mac (11,0), iOS (15,0), MacCatalyst (15,0)]
#else
[SupportedOSPlatform ("ios15.0"), SupportedOSPlatform ("tvos15.0"), SupportedOSPlatform ("macos11.0"), SupportedOSPlatform ("maccatalyst15.0")]
#endif
public enum AVAudioRoutingArbitrationCategory : long {
Playback = 0,
PlayAndRecord = 1,
Expand All @@ -1222,70 +1193,46 @@ public enum AVContentKeyResponseDataType {
}
#endif

#if !NET
[TV (15,0), Mac (12,0), iOS (15,0), Watch (8,0), MacCatalyst (15,0)]
#else
[SupportedOSPlatform ("ios15.0"), SupportedOSPlatform ("tvos15.0"), SupportedOSPlatform ("macos12.0"), SupportedOSPlatform ("maccatalyst15.0")]
#endif
[Flags]
[Native]
public enum AVDelegatingPlaybackCoordinatorRateChangeOptions : ulong {
None = 0,
PlayImmediately = (1uL << 0),
}

#if !NET
[TV (15,0), Mac (12,0), iOS (15,0), Watch (8,0), MacCatalyst (15,0)]
#else
[SupportedOSPlatform ("ios15.0"), SupportedOSPlatform ("tvos15.0"), SupportedOSPlatform ("macos12.0"), SupportedOSPlatform ("maccatalyst15.0")]
#endif
[Flags]
[Native]
public enum AVDelegatingPlaybackCoordinatorSeekOptions : ulong {
None = 0,
ResumeImmediately = (1uL << 0),
}

#if !NET
[NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)]
#else
[UnsupportedOSPlatform ("tvos"), SupportedOSPlatform ("ios15.0"), SupportedOSPlatform ("macos12.0"), SupportedOSPlatform ("maccatalyst15.0")]
#endif
[Native]
public enum AVCaptureMicrophoneMode : long {
Standard = 0,
WideSpectrum = 1,
VoiceIsolation = 2,
}

#if !NET
[NoWatch, NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)]
#else
[UnsupportedOSPlatform ("tvos"), SupportedOSPlatform ("ios15.0"), SupportedOSPlatform ("macos12.0"), SupportedOSPlatform ("maccatalyst15.0")]
#endif
[Native]
public enum AVCaptureSystemUserInterface : long {
VideoEffects = 1,
MicrophoneModes = 2,
}

#if !NET
[Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), MacCatalyst (15,0)]
#else
[SupportedOSPlatform ("ios15.0"), SupportedOSPlatform ("tvos15.0"), SupportedOSPlatform ("macos12.0"), SupportedOSPlatform ("maccatalyst15.0")]
#endif
[Native]
public enum AVPlayerAudiovisualBackgroundPlaybackPolicy : long {
Automatic = 1,
Pauses = 2,
ContinuesIfPossible = 3,
}

#if !NET
[TV (15,0), NoWatch, Mac (12,0), iOS (15,0), MacCatalyst (15,0)]
#else
[SupportedOSPlatform ("ios15.0"), SupportedOSPlatform ("tvos15.0"), SupportedOSPlatform ("macos12.0"), SupportedOSPlatform ("maccatalyst15.0")]
#endif
public enum AVCoordinatedPlaybackSuspensionReason {

[Field ("AVCoordinatedPlaybackSuspensionReasonAudioSessionInterrupted")]
Expand All @@ -1307,46 +1254,30 @@ public enum AVCoordinatedPlaybackSuspensionReason {
UserIsChangingCurrentTime,
}

#if !NET
[NoWatch, NoTV, NoiOS, Mac (12,0), NoMacCatalyst]
#else
[UnsupportedOSPlatform ("ios"), UnsupportedOSPlatform ("tvos"), UnsupportedOSPlatform ("maccatalyst"), SupportedOSPlatform ("macos12.0")]
#endif
[Native]
public enum AVCaptionAnimation : long {
None = 0,
CharacterReveal = 1,
}

#if !NET
[NoWatch, NoTV, NoiOS, Mac (12,0), NoMacCatalyst]
#else
[UnsupportedOSPlatform ("ios"), UnsupportedOSPlatform ("tvos"), UnsupportedOSPlatform ("maccatalyst"), SupportedOSPlatform ("macos12.0")]
#endif
[Native]
public enum AVCaptionFontWeight : long {
Unknown = 0,
Normal = 1,
Bold = 2,
}

#if !NET
[NoWatch, NoTV, NoiOS, Mac (12,0), NoMacCatalyst]
#else
[UnsupportedOSPlatform ("ios"), UnsupportedOSPlatform ("tvos"), UnsupportedOSPlatform ("maccatalyst"), SupportedOSPlatform ("macos12.0")]
#endif
[Native]
public enum AVCaptionFontStyle : long {
Unknown = 0,
Normal = 1,
Italic = 2,
}

#if !NET
[NoWatch, NoTV, NoiOS, Mac (12,0), NoMacCatalyst]
#else
[UnsupportedOSPlatform ("ios"), UnsupportedOSPlatform ("tvos"), UnsupportedOSPlatform ("maccatalyst"), SupportedOSPlatform ("macos12.0")]
#endif
[Flags]
[Native]
public enum AVCaptionDecoration : ulong {
Expand All @@ -1356,11 +1287,7 @@ public enum AVCaptionDecoration : ulong {
Overline = 1uL << 2,
}

#if !NET
[NoWatch, NoTV, NoiOS, Mac (12,0), NoMacCatalyst]
#else
[UnsupportedOSPlatform ("ios"), UnsupportedOSPlatform ("tvos"), UnsupportedOSPlatform ("maccatalyst"), SupportedOSPlatform ("macos12.0")]
#endif
[Native]
public enum AVCaptionTextCombine : long {
All = -1,
Expand All @@ -1371,11 +1298,7 @@ public enum AVCaptionTextCombine : long {
FourDigits = 4,
}

#if !NET
[NoWatch, NoTV, NoiOS, Mac (12,0), NoMacCatalyst]
#else
[UnsupportedOSPlatform ("ios"), UnsupportedOSPlatform ("tvos"), UnsupportedOSPlatform ("maccatalyst"), SupportedOSPlatform ("macos12.0")]
#endif
[Native]
public enum AVCaptionTextAlignment : long {
Start = 0,
Expand All @@ -1385,58 +1308,38 @@ public enum AVCaptionTextAlignment : long {
Right = 4,
}

#if !NET
[NoWatch, NoTV, NoiOS, Mac (12,0), NoMacCatalyst]
#else
[UnsupportedOSPlatform ("ios"), UnsupportedOSPlatform ("tvos"), UnsupportedOSPlatform ("maccatalyst"), SupportedOSPlatform ("macos12.0")]
#endif
[Native]
public enum AVCaptionRegionWritingMode : long
{
LeftToRightAndTopToBottom = 0,
TopToBottomAndRightToLeft = 2,
}

#if !NET
[NoWatch, NoTV, NoiOS, Mac (12,0), NoMacCatalyst]
#else
[UnsupportedOSPlatform ("ios"), UnsupportedOSPlatform ("tvos"), UnsupportedOSPlatform ("maccatalyst"), SupportedOSPlatform ("macos12.0")]
#endif
[Native]
public enum AVCaptionRegionScroll : long {
None = 0,
RollUp = 1,
}

#if !NET
[NoWatch, NoTV, NoiOS, Mac (12,0), NoMacCatalyst]
#else
[UnsupportedOSPlatform ("ios"), UnsupportedOSPlatform ("tvos"), SupportedOSPlatform ("macos12.0"), UnsupportedOSPlatform ("maccatalyst")]
#endif
[Native]
public enum AVCaptionRegionDisplayAlignment : long {
Before = 0,
Center = 1,
After = 2,
}

#if !NET
[NoWatch, NoTV, NoiOS, Mac (12,0), NoMacCatalyst]
#else
[UnsupportedOSPlatform ("ios"), UnsupportedOSPlatform ("tvos"), UnsupportedOSPlatform ("maccatalyst"), SupportedOSPlatform ("macos12.0")]
#endif
[Native]
public enum AVCaptionRubyPosition : long
{
Before = 0,
After = 1,
}

#if !NET
[NoWatch, NoTV, NoiOS, Mac (12,0), NoMacCatalyst]
#else
[UnsupportedOSPlatform ("ios"), UnsupportedOSPlatform ("tvos"), UnsupportedOSPlatform ("maccatalyst"), SupportedOSPlatform ("macos12.0")]
#endif
[Native]
public enum AVCaptionRubyAlignment : long {
Start = 0,
Expand All @@ -1445,11 +1348,7 @@ public enum AVCaptionRubyAlignment : long {
DistributeSpaceAround = 3,
}

#if !NET
[NoWatch, NoTV, NoiOS, Mac (12,0), NoMacCatalyst]
#else
[UnsupportedOSPlatform ("ios"), UnsupportedOSPlatform ("tvos"), UnsupportedOSPlatform ("maccatalyst"), SupportedOSPlatform ("macos12.0")]
#endif
[Native]
public enum AVCaptionConversionValidatorStatus : long
{
Expand Down

0 comments on commit de398b7

Please sign in to comment.