HKHealthStore.DisableBackgroundDeliveryAsync(HKObjectType) Method

Definition

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

[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual System.Threading.Tasks.Task<Tuple<bool,Foundation.NSError>> DisableBackgroundDeliveryAsync (HealthKit.HKObjectType type);
abstract member DisableBackgroundDeliveryAsync : HealthKit.HKObjectType -> System.Threading.Tasks.Task<bool * Foundation.NSError>
override this.DisableBackgroundDeliveryAsync : HealthKit.HKObjectType -> System.Threading.Tasks.Task<bool * Foundation.NSError>

Parameters

type
HKObjectType

The object type for which to disable background notifications.

Returns

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

Attributes

Applies to