HKWorkoutBuilder.EndCollectionAsync(NSDate) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Ends the workout and returns a task that contains a success status and any error that occured.
public virtual System.Threading.Tasks.Task<Tuple<bool,Foundation.NSError>> EndCollectionAsync (Foundation.NSDate endDate);
abstract member EndCollectionAsync : Foundation.NSDate -> System.Threading.Tasks.Task<bool * Foundation.NSError>
override this.EndCollectionAsync : Foundation.NSDate -> System.Threading.Tasks.Task<bool * Foundation.NSError>
Parameters
- endDate
- NSDate
The end time of the workout.
Returns
A task that contains a success status and any error that occured.