Modifica

Condividi tramite


HKHealthStore.HandleAuthorizationForExtensionAsync Method

Definition

Requests authorization for an extension to read and write data, and runs a completion handler that receives a Boolean success value and an error object.

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual System.Threading.Tasks.Task<Tuple<bool,Foundation.NSError>> HandleAuthorizationForExtensionAsync ();
abstract member HandleAuthorizationForExtensionAsync : unit -> System.Threading.Tasks.Task<bool * Foundation.NSError>
override this.HandleAuthorizationForExtensionAsync : unit -> System.Threading.Tasks.Task<bool * Foundation.NSError>

Returns

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

Attributes

Applies to