HKHealthStore.DisableBackgroundDeliveryAsync(HKObjectType) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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