Share via


EKEventStore.RequestAccessAsync(EKEntityType) Method

Definition

Shows, if necessary, the standard permissions dialog for the specified entityType.

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual System.Threading.Tasks.Task<Tuple<bool,Foundation.NSError>> RequestAccessAsync(EventKit.EKEntityType entityType);
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member RequestAccessAsync : EventKit.EKEntityType -> System.Threading.Tasks.Task<bool * Foundation.NSError>
override this.RequestAccessAsync : EventKit.EKEntityType -> System.Threading.Tasks.Task<bool * Foundation.NSError>

Parameters

entityType
EKEntityType

The for which access is being requested.

Returns

A task that represents the asynchronous RequestAccess operation. The value of the TResult parameter is of type System.Action<System.Boolean,Foundation.NSError>.

Attributes

Remarks

The RequestAccessAsync method is suitable to be used with C# async by returning control to the caller with a Task representing the operation.

Applies to