Language

UIGuidedAccessRestriction.ConfigureAccessibilityFeaturesAsync Method

Definition

Asynchronously configures the specified guided access accessibility features.

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.Optimizable)]
public static System.Threading.Tasks.Task<(bool Success, Foundation.NSError Error)> ConfigureAccessibilityFeaturesAsync(UIKit.UIGuidedAccessAccessibilityFeature features, bool enabled);
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.Optimizable)]
public static System.Threading.Tasks.Task<(bool Success, Foundation.NSError? Error)> ConfigureAccessibilityFeaturesAsync(UIKit.UIGuidedAccessAccessibilityFeature features, bool enabled);
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.Optimizable)>]
static member ConfigureAccessibilityFeaturesAsync : UIKit.UIGuidedAccessAccessibilityFeature * bool -> System.Threading.Tasks.Task<ValueTuple<bool, Foundation.NSError>>

Parameters

features
UIGuidedAccessAccessibilityFeature

The accessibility features to configure.

enabled
Boolean

Whether the features should be enabled or disabled.

Returns

A task that represents the asynchronous operation, containing a tuple with the success status and any error that occurred.

Attributes

Applies to