Edytuj

Udostępnij za pośrednictwem


HKHealthStore.DisableBackgroundDelivery Method

Definition

Disables the background delivery of notifications of the specified type and runs an action after delivery has been disabled.

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

Parameters

type
HKObjectType

The object type for which to disable background notifications.

completion
Action<Boolean,NSError>

A handler to run when the operation completes.

Attributes

Applies to