Compartir a través de


HKHealthStore.GetRequestStatusForAuthorizationToShare Método

Definición

Pasa el estado de la solicitud, que comunica si la aplicación necesita solicitar permiso de usuario a completion.

[Foundation.Export("getRequestStatusForAuthorizationToShareTypes:readTypes:completion:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.WatchOS, 5, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 12, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void GetRequestStatusForAuthorizationToShare (Foundation.NSSet<HealthKit.HKSampleType> typesToShare, Foundation.NSSet<HealthKit.HKObjectType> typesToRead, HealthKit.HKHealthStoreGetRequestStatusForAuthorizationToShareHandler completion);
abstract member GetRequestStatusForAuthorizationToShare : Foundation.NSSet<HealthKit.HKSampleType> * Foundation.NSSet<HealthKit.HKObjectType> * HealthKit.HKHealthStoreGetRequestStatusForAuthorizationToShareHandler -> unit
override this.GetRequestStatusForAuthorizationToShare : Foundation.NSSet<HealthKit.HKSampleType> * Foundation.NSSet<HealthKit.HKObjectType> * HealthKit.HKHealthStoreGetRequestStatusForAuthorizationToShareHandler -> unit

Parámetros

typesToShare
NSSet<HKSampleType>

Tipos para los que se va a solicitar el estado de autorización del recurso compartido.

typesToRead
NSSet<HKObjectType>

Tipos para los que se va a solicitar el estado de autorización de lectura.

completion
HKHealthStoreGetRequestStatusForAuthorizationToShareHandler

Controlador que se va a ejecutar cuando se completa la operación.

Atributos

Se aplica a