Class HKSampleType

All Implemented Interfaces:
NSCoding, NSObjectProtocol, NSSecureCoding, ObjCProtocol
Direct Known Subclasses:
HKAudiogramSampleType, HKCategoryType, HKClinicalType, HKCorrelationType, HKDocumentType, HKElectrocardiogramType, HKQuantityType, HKSeriesType, HKWorkoutType

public class HKSampleType
extends HKObjectType
  • Constructor Details

    • HKSampleType

      protected HKSampleType()
    • HKSampleType

      protected HKSampleType​(NSObject.Handle h, long handle)
    • HKSampleType

      protected HKSampleType​(NSObject.SkipInit skipInit)
  • Method Details

    • isMaximumDurationRestricted

      public boolean isMaximumDurationRestricted()
      Since:
      Available in iOS 13.0 and later.
    • getMaximumAllowedDuration

      public double getMaximumAllowedDuration()
      Since:
      Available in iOS 13.0 and later.
    • isMinimumDurationRestricted

      public boolean isMinimumDurationRestricted()
      Since:
      Available in iOS 13.0 and later.
    • getMinimumAllowedDuration

      public double getMinimumAllowedDuration()
      Since:
      Available in iOS 13.0 and later.
    • allowsRecalibrationForEstimates

      public boolean allowsRecalibrationForEstimates()
      Since:
      Available in iOS 15.0 and later.
    • supportsSecureCoding

      public static boolean supportsSecureCoding()
    • getQuantityType

      public static HKQuantityType getQuantityType​(HKQuantityTypeIdentifier identifier)
    • getCategoryType

      public static HKCategoryType getCategoryType​(HKCategoryTypeIdentifier identifier)
    • getCharacteristicType

      public static HKCharacteristicType getCharacteristicType​(HKCharacteristicTypeIdentifier identifier)
    • getCorrelationType

      public static HKCorrelationType getCorrelationType​(HKCorrelationTypeIdentifier identifier)
    • documentTypeForIdentifier

      public static HKDocumentType documentTypeForIdentifier​(String identifier)
      Since:
      Available in iOS 10.0 and later.
    • seriesTypeForIdentifier

      public static HKSeriesType seriesTypeForIdentifier​(String identifier)
      Since:
      Available in iOS 11.0 and later.
    • getWorkoutType

      public static HKWorkoutType getWorkoutType()
    • activitySummaryType

      public static HKActivitySummaryType activitySummaryType()
      Since:
      Available in iOS 9.3 and later.
    • audiogramSampleType

      public static HKAudiogramSampleType audiogramSampleType()
      Since:
      Available in iOS 13.0 and later.
    • electrocardiogramType

      public static HKElectrocardiogramType electrocardiogramType()
      Since:
      Available in iOS 14.0 and later.