One Logo Pool Ball
HealthKit · IOS API REFERENCE

HKHeartbeatSeriesBuilder

class · iOS 13.0+ · SDK 27.1

class HKHeartbeatSeriesBuilder

Members (5)

get · iOS 13.0+

maximumCount

TypeScript
static get maximumCount(): number
Swift declaration
class var maximumCount: Int { get }
method · iOS 13.0+

addHeartbeatWithTimeInterval

TypeScript
addHeartbeatWithTimeInterval(timeIntervalSinceStart: number, precededByGap: boolean, completion: ((arg0: boolean, arg1: (NativeError) | null) => void)): void
Swift declaration
func addHeartbeat(at timeIntervalSinceStart: TimeInterval, precededByGap: Bool) async throws
method · iOS 13.0+

addMetadata

TypeScript
addMetadata(metadata: Record<string, unknown>, completion: ((arg0: boolean, arg1: (NativeError) | null) => void)): void
Swift declaration
func addMetadata(_ metadata: [String : Any]) async throws
method · iOS 13.0+

finishSeries

TypeScript
finishSeries(completion: ((arg0: (HKHeartbeatSeriesSample) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
func finishSeries() async throws -> HKHeartbeatSeriesSample
init · iOS 13.0+

init

TypeScript
static init(healthStore: HKHealthStore, device: (HKDevice) | null, startDate: globalThis.Date): HKHeartbeatSeriesBuilder
Swift declaration
init(healthStore: HKHealthStore, device: HKDevice?, start startDate: Date)

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

HKHeartbeatSeriesBuilder.init()

inherited init: cannot prove legal (class declares 2 custom initializers)

All HealthKit types →