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
24 changes: 24 additions & 0 deletions src/mediaaccessibility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

using ObjCRuntime;
using Foundation;
using Surface = IOSurface.IOSurface;

namespace MediaAccessibility {

Expand Down Expand Up @@ -45,4 +46,27 @@ interface MAVideoAccommodations {
[Field ("kMADimFlashingLightsChangedNotification")]
NSString DimFlashingLightsChangedNotification { get; }
}

[TV (17, 0), Mac (14, 0), iOS (17, 0), MacCatalyst (17, 0)]
[BaseType (typeof (NSObject))]
interface MAFlashingLightsProcessorResult {
[Export ("surfaceProcessed")]
bool SurfaceProcessed { get; }

[Export ("mitigationLevel")]
float MitigationLevel { get; }

[Export ("intensityLevel")]
float IntensityLevel { get; }
}

[TV (17, 0), Mac (14, 0), iOS (17, 0), MacCatalyst (17, 0)]
[BaseType (typeof (NSObject))]
interface MAFlashingLightsProcessor {
[Export ("canProcessSurface:")]
bool CanProcess (Surface surface);

[Export ("processSurface:outSurface:timestamp:options:")]
MAFlashingLightsProcessorResult Process (Surface inSurface, Surface outSurface, double timestamp, [NullAllowed] NSDictionary options);
}
}

This file was deleted.

This file was deleted.

This file was deleted.

7 changes: 0 additions & 7 deletions tests/xtro-sharpie/iOS-MediaAccessibility.todo

This file was deleted.

7 changes: 0 additions & 7 deletions tests/xtro-sharpie/macOS-MediaAccessibility.todo

This file was deleted.

7 changes: 0 additions & 7 deletions tests/xtro-sharpie/tvOS-MediaAccessibility.todo

This file was deleted.