Edit

Share via


HKHealthStore.RequestAuthorizationToShareAsync(NSSet, NSSet) Method

Definition

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

public virtual System.Threading.Tasks.Task<Tuple<bool,Foundation.NSError>> RequestAuthorizationToShareAsync (Foundation.NSSet typesToShare, Foundation.NSSet typesToRead);
abstract member RequestAuthorizationToShareAsync : Foundation.NSSet * Foundation.NSSet -> System.Threading.Tasks.Task<bool * Foundation.NSError>
override this.RequestAuthorizationToShareAsync : Foundation.NSSet * Foundation.NSSet -> System.Threading.Tasks.Task<bool * Foundation.NSError>

Parameters

typesToShare
NSSet
typesToRead
NSSet

Returns

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

Applies to