public class HKStatistics extends NSObject implements NSSecureCoding, NSCopying
Represents statistics for quantity samples over a period of time.
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
HKStatistics(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
_supportsSecureCoding()
This property must return YES on all classes that allow secure coding.
|
static boolean |
accessInstanceVariablesDirectly() |
static HKStatistics |
alloc() |
static HKStatistics |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
HKQuantity |
averageQuantity()
averageQuantity
|
HKQuantity |
averageQuantityForSource(HKSource source)
averageQuantityForSource:
|
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
java.lang.Object |
copyWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
static java.lang.String |
debugDescription_static() |
static java.lang.String |
description_static() |
HKQuantity |
duration()
Total duration (in seconds) covered by the samples represented by these statistics.
|
HKQuantity |
durationForSource(HKSource source)
durationForSource:
|
void |
encodeWithCoder(NSCoder coder) |
NSDate |
endDate() |
static long |
hash_static() |
HKStatistics |
init() |
HKStatistics |
initWithCoder(NSCoder coder)
NS_DESIGNATED_INITIALIZER
|
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
HKQuantity |
maximumQuantity()
maximumQuantity
|
HKQuantity |
maximumQuantityForSource(HKSource source)
maximumQuantityForSource:
|
HKQuantity |
minimumQuantity()
minimumQuantity
|
HKQuantity |
minimumQuantityForSource(HKSource source)
minimumQuantityForSource:
|
HKQuantity |
mostRecentQuantity()
mostRecentQuantity
|
NSDateInterval |
mostRecentQuantityDateInterval()
mostRecentQuantityDateInterval
|
NSDateInterval |
mostRecentQuantityDateIntervalForSource(HKSource source)
mostRecentQuantityDateIntervalForSource:
|
HKQuantity |
mostRecentQuantityForSource(HKSource source)
mostRecentQuantityForSource:
|
static HKStatistics |
new_objc() |
HKQuantityType |
quantityType() |
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
static void |
setVersion_static(long aVersion) |
NSArray<? extends HKSource> |
sources() |
NSDate |
startDate() |
HKQuantity |
sumQuantity()
sumQuantity
|
HKQuantity |
sumQuantityForSource(HKSource source)
sumQuantityForSource:
|
static org.moe.natj.objc.Class |
superclass_static() |
static boolean |
supportsSecureCoding() |
static long |
version_static() |
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKeypublic static boolean accessInstanceVariablesDirectly()
public static HKStatistics alloc()
public static HKStatistics allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public static java.lang.String debugDescription_static()
public static java.lang.String description_static()
public static long hash_static()
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public static HKStatistics new_objc()
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public static void setVersion_static(long aVersion)
public static org.moe.natj.objc.Class superclass_static()
public static boolean supportsSecureCoding()
public static long version_static()
public HKQuantity averageQuantity()
Returns the average quantity in the time period represented by the receiver.
public HKQuantity averageQuantityForSource(HKSource source)
Returns the average quantity for the given source in the time period represented by the receiver.
If HKStatisticsOptionSeparateBySource is not specified, then this will always be nil.
public java.lang.Object copyWithZone(org.moe.natj.general.ptr.VoidPtr zone)
copyWithZone in interface NSCopyingpublic void encodeWithCoder(NSCoder coder)
encodeWithCoder in interface NSCodingpublic NSDate endDate()
public HKStatistics init()
public HKStatistics initWithCoder(NSCoder coder)
NSCodinginitWithCoder in interface NSCodingpublic HKQuantity maximumQuantity()
Returns the maximum quantity in the time period represented by the receiver.
public HKQuantity maximumQuantityForSource(HKSource source)
Returns the maximum quantity for the given source in the time period represented by the receiver.
If HKStatisticsOptionSeparateBySource is not specified, then this will always be nil.
public HKQuantity minimumQuantity()
Returns the minimum quantity in the time period represented by the receiver.
public HKQuantity minimumQuantityForSource(HKSource source)
Returns the minimum quantity for the given source in the time period represented by the receiver.
If HKStatisticsOptionSeparateBySource is not specified, then this will always be nil.
public HKQuantityType quantityType()
public NSDate startDate()
public HKQuantity sumQuantity()
Returns the sum of quantities in the time period represented by the receiver.
public HKQuantity sumQuantityForSource(HKSource source)
Returns the sum quantity for the given source in the time period represented by the receiver.
If HKStatisticsOptionSeparateBySource is not specified, then this will always be nil.
public boolean _supportsSecureCoding()
NSSecureCoding_supportsSecureCoding in interface NSSecureCodingpublic HKQuantity duration()
duration
Total duration, as a time-unit compatible quantity, covered by the samples represented by these statistics.
Only present if HKStatisticsOptionDuration is is specified.
public HKQuantity durationForSource(HKSource source)
Returns the duration, as a time-unit compatible quantity, for the given source in the time period represented by the receiver.
If HKStatisticsOptionSeparateBySource is not specified, then this will always be nil.
public HKQuantity mostRecentQuantity()
Returns the most recent quantity in the time period represented by the receiver.
public NSDateInterval mostRecentQuantityDateInterval()
Returns the date interval of the most recent quantity in the time period represented by the receiver.
public NSDateInterval mostRecentQuantityDateIntervalForSource(HKSource source)
Returns the date interval of the most recent quantity for the given source in the time period represented by the receiver.
If HKStatisticsOptionSeparateBySource is not specified, then this will always be nil.
public HKQuantity mostRecentQuantityForSource(HKSource source)
Returns the most recent quantity for the given source in the time period represented by the receiver.
If HKStatisticsOptionSeparateBySource is not specified, then this will always be nil.