Contents

init(sampleType:predicate:)

Creates a new descriptor for the data type and predicate you provided.

Declaration

init(sampleType: HKSampleType, predicate: NSPredicate?)

Parameters

  • sampleType:

    The data type of samples that match this descriptor. For more information, see Data Types.

  • predicate:

    The predicate used to filter samples that match this descriptor. If the predicate is nil, the descriptor matches all samples of the specified data type.