MCTTappingSample
public struct MCTTappingSample : RSDSampleRecord, Codable
The MCTTappingSample
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 MCTTappingResultObject
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.
-
Clock time for the sample.
Declaration
Swift
public let uptime: TimeInterval
-
A relative timestamp indicating the time of the tap event.
The timestamp is relative to the value of
startDate
in theRSDResult
object that includes this sample.Declaration
Swift
public let timestamp: TimeInterval?
-
The current step path.
Declaration
Swift
public let stepPath: String
-
An enumerated value that indicates which button was tapped, if any.
If the value of this property is
.none
, it indicates that the tap was near, but not inside, one of the target buttons.Declaration
Swift
public let buttonIdentifier: MCTTappingButtonIdentifier
-
The location of the tap within the step’s view.
The location coordinates are relative to a rectangle whose size corresponds to the
stepViewSize
in the enclosingMCTTappingResultObject
object.Declaration
Swift
public let location: CGPoint
-
A duration of the tap event.
The duration store time interval between touch down and touch release events.
Declaration
Swift
public internal(set) var duration: TimeInterval
-
Ignored.
Declaration
Swift
public var timestampDate: Date? { get }