次の方法で共有


EKEventStore.RequestAccess メソッド

定義

必要に応じて、指定した 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

パラメーター

entityType
EKEntityType

EKEntityTypeアクセスが要求されている 。

completionHandler
Action<Boolean,NSError>

ユーザーがアクセス許可ダイアログを操作した後に実行されるコールバック。

属性

適用対象

こちらもご覧ください

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