共用方式為


HKHealthStore.DisableBackgroundDeliveryAsync(HKObjectType) 方法

定義

停用指定類型之通知的背景傳遞,並在傳遞停用之後執行動作。

[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>

參數

type
HKObjectType

要停用背景通知的物件類型。

傳回

表示非同步 DisableBackgroundDelivery 作業的工作。 TResult 參數的值的類型為 System.Action < System.Boolean,Foundation.NSError > 。

屬性

適用於