Contents

heartbeatSeries(_:)

Returns a sample predicate that matches heartbeat series samples.

Declaration

static func heartbeatSeries(_ predicate: NSPredicate? = nil) -> HKSamplePredicate<HKHeartbeatSeriesSample>

Parameters

  • predicate:

    An optional predicate that further restricts the results that the query returns.

Discussion

Use this method to create an HKSamplePredicate instance that you can use to query for HKHeartbeatSeriesSample objects.

See Also

Creating Sample Predicates