Edytuj

Udostępnij za pośrednictwem


HKHealthStore.RequestAuthorizationToShare Method

Definition

Requests autorization to save and read user data and runs an action after a determination has been made.

[Foundation.Export("requestAuthorizationToShareTypes:readTypes:completion:")]
public virtual void RequestAuthorizationToShare (Foundation.NSSet typesToShare, Foundation.NSSet typesToRead, Action<bool,Foundation.NSError> completion);
abstract member RequestAuthorizationToShare : Foundation.NSSet * Foundation.NSSet * Action<bool, Foundation.NSError> -> unit
override this.RequestAuthorizationToShare : Foundation.NSSet * Foundation.NSSet * Action<bool, Foundation.NSError> -> unit

Parameters

typesToShare
NSSet
typesToRead
NSSet
completion
Action<Boolean,NSError>

A handler to run when the operation completes.

Attributes

Applies to