EKEventStore.RequestAccess Method

Definition

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

[Foundation.Export("requestAccessToEntityType:completion:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 9, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void RequestAccess (EventKit.EKEntityType entityType, Action<bool,Foundation.NSError> completionHandler);
abstract member RequestAccess : EventKit.EKEntityType * Action<bool, Foundation.NSError> -> unit
override this.RequestAccess : EventKit.EKEntityType * Action<bool, Foundation.NSError> -> unit

Parameters

entityType
EKEntityType

The EKEntityType for which access is being requested.

completionHandler
Action<Boolean,NSError>

Callback executed after the user has interacted with the permissions dialog.

Attributes

Applies to

See also

  • <xref:MonoTough.EventKit.EKEventStore.GetAuthorizationStatus>