CMMotionActivityManager.QueryActivityAsync Method

Definition

Queries the device for stored motion activity.

public virtual System.Threading.Tasks.Task<CoreMotion.CMMotionActivity[]> QueryActivityAsync (Foundation.NSDate start, Foundation.NSDate end, Foundation.NSOperationQueue queue);
abstract member QueryActivityAsync : Foundation.NSDate * Foundation.NSDate * Foundation.NSOperationQueue -> System.Threading.Tasks.Task<CoreMotion.CMMotionActivity[]>
override this.QueryActivityAsync : Foundation.NSDate * Foundation.NSDate * Foundation.NSOperationQueue -> System.Threading.Tasks.Task<CoreMotion.CMMotionActivity[]>

Parameters

start
NSDate
end
NSDate

Returns

A task that represents the asynchronous QueryActivity operation. The value of the TResult parameter is a CMMotionActivityQueryHandler.

Remarks

The QueryActivityAsync method is suitable to be used with C# async by returning control to the caller with a Task representing the operation.

To be added.

Applies to