HKHealthStore.RequestAuthorizationToShareAsync(NSSet, NSSet) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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>.