HKHealthStore.EnableBackgroundDelivery Metodo

Definizione

Abilitare il recapito in background delle notifiche del tipo specificato ed eseguire un'azione dopo la disabilitazione del recapito.

[Foundation.Export("enableBackgroundDeliveryForType:frequency:withCompletion:")]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void EnableBackgroundDelivery (HealthKit.HKObjectType type, HealthKit.HKUpdateFrequency frequency, Action<bool,Foundation.NSError> completion);
abstract member EnableBackgroundDelivery : HealthKit.HKObjectType * HealthKit.HKUpdateFrequency * Action<bool, Foundation.NSError> -> unit
override this.EnableBackgroundDelivery : HealthKit.HKObjectType * HealthKit.HKUpdateFrequency * Action<bool, Foundation.NSError> -> unit

Parametri

type
HKObjectType

Tipo di oggetto per il quale abilitare le notifiche in background.

frequency
HKUpdateFrequency

Frequenza massima di aggiornamento consentita.

completion
Action<Boolean,NSError>

Gestore da eseguire al termine dell'operazione.

Attributi

Si applica a