共用方式為


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>

作業完成時要執行的處理常式。

屬性

適用於