Instance Method

discard()

Discards all previously collected data and invalidates the builder.

Declaration

func discard()

See Also

Ending the Collection

func finishSeries(metadata: [String : Any]?, completion: ([HKQuantitySample]?, Error?) -> Void)

Finalizes the series and returns the resulting quantity samples.

func finishSeries(metadata: [String : Any]?, endDate: Date?, completion: ([HKQuantitySample]?, Error?) -> Void)

Finalizes the series with the provided end date, and returns the resulting quantity samples.