HKActivitySummaryQuery.UpdateHandler Property

Definition

Gets or sets a handler for one-time or continuous summary query results.

public virtual Action<HealthKit.HKActivitySummaryQuery,HealthKit.HKActivitySummary[],Foundation.NSError> UpdateHandler { [Foundation.Export("updateHandler", ObjCRuntime.ArgumentSemantic.Copy)] get; [Foundation.Export("setUpdateHandler:", ObjCRuntime.ArgumentSemantic.Copy)] set; }
member this.UpdateHandler : Action<HealthKit.HKActivitySummaryQuery, HealthKit.HKActivitySummary[], Foundation.NSError> with get, set

Property Value

A handler for continuously monitoring summary query results.

This value can be null.

Attributes

Remarks

To create a summary query that runs once, developers must pass null to the handler parameter of the appropriate constructor. To create a summary query that instead monitors summaries as they occur, developers must pass a valid predicate. To stop a monitoring query, developers must stop the query with the StopQuery(HKQuery) method.

Applies to