Skip to content

Commit

Permalink
[Accessibility] Add support for xcode 15 beta 4. (#18643)
Browse files Browse the repository at this point in the history
Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
  • Loading branch information
mandel-macaque and GitHub Actions Autoformatter authored Aug 10, 2023
1 parent be39a0c commit fa1f067
Show file tree
Hide file tree
Showing 10 changed files with 35 additions and 28 deletions.
18 changes: 18 additions & 0 deletions src/Accessibility/AXAnimatedImagesUtilities.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#nullable enable

using System;
using System.Runtime.InteropServices;
using CoreGraphics;
using Foundation;
using ObjCRuntime;

namespace Accessibility {

public static partial class AXAnimatedImagesUtilities {

[DllImport (Constants.AccessibilityLibrary)]
extern static byte AXAnimatedImagesEnabled ();

public static bool Enabled => AXAnimatedImagesEnabled () != 0;
}
}
16 changes: 16 additions & 0 deletions src/accessibility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
using NativeHandle = System.IntPtr;
#endif

#nullable enable

namespace Accessibility {

[Watch (8, 0), TV (15, 0), Mac (12, 0), iOS (15, 0), MacCatalyst (15, 0)]
Expand Down Expand Up @@ -134,6 +136,11 @@ interface AXCustomContentProvider {
[Abstract]
[NullAllowed, Export ("accessibilityCustomContent", ArgumentSemantic.Copy)]
AXCustomContent [] AccessibilityCustomContent { get; set; }

[Watch (10, 0), TV (17, 0), Mac (14, 0), iOS (17, 0), MacCatalyst (17, 0)]
[NullAllowed, Export ("accessibilityCustomContentBlock", ArgumentSemantic.Copy)]
Func<AXCustomContent []?> AccessibilityCustomContentHandler { get; set; }

}

interface IAXDataAxisDescriptor { }
Expand Down Expand Up @@ -336,4 +343,13 @@ interface AXBrailleMapRenderer {
[Export ("accessibilityBrailleMapRenderer", ArgumentSemantic.Copy)]
Action<AXBrailleMap> AccessibilityBrailleMapRenderer { get; set; }
}

[Watch (10, 0), TV (17, 0), Mac (14, 0), iOS (17, 0), MacCatalyst (17, 0)]
[Static]
[Partial]
partial interface AXAnimatedImagesUtilities {
[Notification]
[Field ("AXAnimatedImagesEnabledDidChangeNotification")]
NSString AnimatedImagesEnabledDidChangeNotification { get; }
}
}
1 change: 1 addition & 0 deletions src/frameworks.sources
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ ACCELERATE_SOURCES = \

ACCESSIBILITY_SOURCES = \
Accessibility/AXHearingUtilities.cs \
Accessibility/AXAnimatedImagesUtilities.cs \

# Accounts

Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

4 changes: 0 additions & 4 deletions tests/xtro-sharpie/iOS-Accessibility.todo

This file was deleted.

4 changes: 0 additions & 4 deletions tests/xtro-sharpie/macOS-Accessibility.todo

This file was deleted.

4 changes: 0 additions & 4 deletions tests/xtro-sharpie/tvOS-Accessibility.todo

This file was deleted.

4 changes: 0 additions & 4 deletions tests/xtro-sharpie/watchOS-Accessibility.todo

This file was deleted.

5 comments on commit fa1f067

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

Please sign in to comment.