ORKTappingSample Class Reference

Inherits from NSObject
Conforms to NSCopying
NSSecureCoding
Declared in ORKTappingIntervalResult.h

The ORKTappingSample class represents a single tap on a button.

The tapping sample object records the location of the tap, the button that was tapped, and the time at which the event occurred. A tapping sample is included in an ORKTappingIntervalResult object, and is recorded by the step view controller for the corresponding task when a tap is recognized.

A tapping sample is typically generated by the framework as the task proceeds. When the task completes, it may be appropriate to serialize the sample for transmission to a server, or to immediately perform analysis on it.

  timestamp

A relative timestamp indicating the time of the tap event.

@property (nonatomic, assign) NSTimeInterval timestamp

Discussion

The timestamp is relative to the value of startDate in the ORKResult object that includes this sample.

Declared In

ORKTappingIntervalResult.h

  duration

A duration of the tap event.

@property (nonatomic, assign) NSTimeInterval duration

Discussion

The duration store time interval between touch down and touch release events.

Declared In

ORKTappingIntervalResult.h

  buttonIdentifier

An enumerated value that indicates which button was tapped, if any.

@property (nonatomic, assign) ORKTappingButtonIdentifier buttonIdentifier

Discussion

If the value of this property is ORKTappingButtonIdentifierNone, it indicates that the tap was near, but not inside, one of the target buttons.

Declared In

ORKTappingIntervalResult.h

  location

The location of the tap within the step’s view.

@property (nonatomic, assign) CGPoint location

Discussion

The location coordinates are relative to a rectangle whose size corresponds to the stepViewSize in the enclosing ORKTappingIntervalResult object.

Declared In

ORKTappingIntervalResult.h