Skip to content
Merged
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
19 changes: 9 additions & 10 deletions src/UIKit/UIAccessibilityCustomAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,21 @@

using CoreGraphics;

// Disable until we get around to enable + fix any issues.
#nullable disable
#nullable enable

namespace UIKit {

/// <summary>
/// A custom action to be presented to an assistive application.
/// </summary>
public partial class UIAccessibilityCustomAction {
object action;
object? action;

/// <param name="name">To be added.</param>
/// <param name="probe">To be added.</param>
/// <summary>Creates a <see cref="UIKit.UIAccessibilityCustomAction" /> withthe specified <paramref name="name" />.</summary>
/// <remarks>To be added.</remarks>
/// <summary>Creates a <see cref="UIAccessibilityCustomAction" /> with the specified <paramref name="name" />.</summary>
/// <param name="name">The name of the action.</param>
/// <param name="probe">A callback to invoke when the action is activated.</param>
public UIAccessibilityCustomAction (string name, Func<UIAccessibilityCustomAction, bool> probe) : this (name, FuncBoolDispatcher.Selector, new FuncBoolDispatcher (probe))
{
Comment thread
rolfbjarne marked this conversation as resolved.

}

internal UIAccessibilityCustomAction (string name, Selector sel, FuncBoolDispatcher disp) : this (name, disp, sel)
Expand All @@ -42,8 +42,7 @@ internal sealed class FuncBoolDispatcher : NSObject {

public FuncBoolDispatcher (Func<UIAccessibilityCustomAction, bool> probe)
{
if (probe is null)
throw new ArgumentNullException ("probe");
ArgumentNullException.ThrowIfNull (probe);

this.probe = probe;
IsDirectBinding = false;
Expand Down