HKHealthStore.DisableBackgroundDelivery 方法

定义

禁用指定类型的通知的后台传递,并在禁用传递后运行操作。

[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

参数

type
HKObjectType

要为其禁用后台通知的对象类型。

completion
Action<Boolean,NSError>

操作完成时要运行的处理程序。

属性

适用于