ORKSpatialSpanMemoryGameTouchSample Class Reference

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

The ORKSpatialSpanMemoryGameTouchSample class represents a tap during the spatial span memory game.

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

  timestamp

A timestamp (in seconds) from the beginning of the game.

@property (nonatomic, assign) NSTimeInterval timestamp

Declared In

ORKResult.h

  targetIndex

The index of the target that was tapped.

@property (nonatomic, assign) NSInteger targetIndex

Discussion

Usually, this index is a value that ranges between 0 and the number of targets, indicating which target was tapped.

If the touch was outside all of the targets, the value of this property is -1.

Declared In

ORKResult.h

  location

A point that records the touch location in the step’s view.

@property (nonatomic, assign) CGPoint location

Declared In

ORKResult.h

  correct

A Boolean value indicating whether the tapped target was the correct one.

@property (nonatomic, assign, getter=isCorrect) BOOL correct

Discussion

The value of this property is YES when the tapped target is the correct one, and NO otherwise.

Declared In

ORKResult.h