// // SRFetchResult.h // SensorKit // // Copyright © 2019 Apple Inc. All rights reserved. // #import #import NS_ASSUME_NONNULL_BEGIN SR_EXTERN API_AVAILABLE(ios(14.0)) API_UNAVAILABLE(watchos, macos) API_UNAVAILABLE(tvos) @interface SRFetchResult : NSObject /** * @brief Retrieves the resultant sample * @discussion The caller is expected to know what the result type should be * @note This may thrown an exception if the sample could not be constructed from * the data in the datastore */ @property (readonly, copy) SampleType sample; /** * @brief the timestamp the sample was written to the data store */ @property (readonly, assign) SRAbsoluteTime timestamp; - (instancetype)init NS_UNAVAILABLE; + (instancetype)new NS_UNAVAILABLE; @end NS_ASSUME_NONNULL_END