MCTTappingResultObject

public struct MCTTappingResultObject : RSDResult, Encodable, RSDArchivable, RSDScoringResult

The MCTTappingResultObject records the results of a tapping interval test.

The tapping interval result object records an array of touch samples (one for each tap) and also the geometry of the task at the time it was displayed. You can use the information in the object for reference in interpreting the touch samples.

A tapping interval 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.

  • The identifier for the associated step.

    Declaration

    Swift

    public var identifier: String
  • Default = .tapping.

    Declaration

    Swift

    public private(set) var type: RSDResultType
  • Timestamp date for when the step was started.

    Declaration

    Swift

    public var startDate: Date
  • Timestamp date for when the step was ended.

    Declaration

    Swift

    public var endDate: Date
  • An array of collected tapping samples.

    Declaration

    Swift

    public internal(set) var samples: [MCTTappingSample]?
  • The tap count of hits that were within the buttons.

    Declaration

    Swift

    public internal(set) var tapCount: Int
  • The size of the bounds of the step view containing the tap targets.

    Declaration

    Swift

    public internal(set) var stepViewSize: CGSize
  • The frame of the left button, in points, relative to the step view bounds.

    Declaration

    Swift

    public internal(set) var buttonRect1: CGRect
  • The frame of the right button, in points, relative to the step view bounds.

    Declaration

    Swift

    public internal(set) var buttonRect2: CGRect
  • Build the archiveable or uploadable data for this result.

    Declaration

    Swift

    public func buildArchiveData(at stepPath: String?) throws -> (manifest: RSDFileManifest, data: Data)?
  • Declaration

    Swift

    public func encode(to encoder: Encoder) throws
  • Declaration

    Swift

    public func dataScore() throws -> RSDJSONSerializable?