Structures

The following structures are available globally.

  • RSDTaskResultObject is a result associated with a task. This object includes a step history, task run UUID, schema identifier, and asynchronous results.

    See more

    Declaration

    Swift

    public struct RSDTaskResultObject : RSDTaskResult, Codable
  • RSDImageWrapper vends an image. It does not handle image caching. If your app using a custom image caching, then you will need to use the shared delegate to implement this. The image wrapper is designed to allow coding of images using an imageName property as a key for accessing the image.

    See more

    Declaration

    Swift

    public struct RSDImageWrapper
  • RSDUnitConverter is a static struct for defined unit converters for converting between US English (imperial) to metric units. This is used to allow for displaying a person’s height or weight in imperial units, while storing the value in standardized metric units.

    See more

    Declaration

    Swift

    public struct RSDUnitConverter
  • RSDResourceTransformerObject is a concrete implementation of a codable resource transformer. The transformer can be used to create an object decoded from an embedded resource.

    See more

    Declaration

    Swift

    public struct RSDResourceTransformerObject : Codable
  • RSDAnswerResultType is a Codable struct that can be used to describe how to encode and decode an RSDAnswerResult. It carries information about the type of the value and how to encode it. This struct serves a different purpose from the RSDFormDataType because it only carries information required to store a result and not additional information about presentation style.

    See more

    Declaration

    Swift

    public struct RSDAnswerResultType : Codable
  • The type of the step. This is used to decode the step using a RSDFactory. It can also be used to customize the UI.

    See more

    Declaration

    Swift

    public struct RSDStepType : RawRepresentable, Codable
  • RSDDeviceType describes various devices. It can be used by a task to vend different steps or async actions based upon what is supported by a given device type.

    Note

    This is not currently used and may be deprecated.
    See more

    Declaration

    Swift

    public struct RSDDeviceType : RawRepresentable, Codable
  • RSDCollectionResultObject is used include multiple results associated with a single step or async action that may have more that one result.

    See more

    Declaration

    Swift

    public struct RSDCollectionResultObject : RSDCollectionResult, Codable
  • RSDIdentifier is intended to allow a developer to define constants for the identifiers that are used to define the tasks, steps, input fields, and async actions associated with a given task or task group.

    Note

    The base implementation includes exit
    See more

    Declaration

    Swift

    public struct RSDIdentifier : RawRepresentable, Codable
  • The RSDFormUIHint enum is a key word that can be used to describe the preferred UI for a form input field. This is intended as a hint that the designers and developers can use to indicate the preferred input style for an input field. Not all ui hints are applicable to all data types or devices, and therefore the ui hint may be ignored by the application displaying the input field to the user.

    See more

    Declaration

    Swift

    public struct RSDFormUIHint : RawRepresentable, Codable
  • RSDResultType is an extendable string enum used by RSDFactory to create the appropriate result type.

    See more

    Declaration

    Swift

    public struct RSDResultType : RawRepresentable, Codable
  • RSDSectionStepObject is used to define a logical subgrouping of steps such as a section in a longer survey or an active step that includes an instruction step, countdown step, and activity step.

    See more

    Declaration

    Swift

    public struct RSDSectionStepObject: RSDSectionStep, RSDStepValidator, Decodable
  • RSDResourceType is an extendable struct for describing the type of a resource. By default, these values will map to the file extension.

    See more

    Declaration

    Swift

    public struct RSDResourceType : RawRepresentable, Equatable, Hashable, Codable
  • RSDFileResultObject is a concrete implementation of a result that holds a pointer to a file url.

    See more

    Declaration

    Swift

    public struct RSDFileResultObject : RSDFileResult, Codable
  • RSDGenericStepObject is a step with key/value pairs decoded from a dictionary. This is the default step returned by RSDFactory for an unrecoginized type.

    This step is intended for use as a placeholder step for decoding a step that may be defined using a customized subtype or for replacing properties on an RSDMutableStep.

    See more

    Declaration

    Swift

    public struct RSDGenericStepObject : RSDGenericStep, Decodable
  • RSDAnswerResultObject is a concrete implementation of a result that can be described using a single value.

    See more

    Declaration

    Swift

    public struct RSDAnswerResultObject : RSDAnswerResult, Codable
  • RSDStandardAsyncActionConfiguration is a concrete implementation of RSDRecorderConfiguration that can be used to decode an async configuration for a recorder.

    Note

    There is no implementations of the recorders included in this framework. That is to allow this framework to stand alone without requiring any embedded frameworks that may be unused by a given application. For example, there are numerous different uses for the CoreMotion framework. One task module will use this framework to gather background information about tremor, while another will use it to measure response time. Since the use-case will differ with the task and when it is most appropriate to request permissions will differ with the task, it is unnecessarily restrictive to enforce constraits generally. (syoung 11/20/2017)
    See more

    Declaration

    Swift

    public struct RSDStandardAsyncActionConfiguration : RSDRecorderConfiguration, Codable
  • RSDComparableSurveyRuleObject is a survey rule that matches an expected result to the answer and vends a skip identifier if the match is evaluated to true.

    See more

    Declaration

    Swift

    public struct RSDComparableSurveyRuleObject<T : Codable> : RSDComparableSurveyRule, Codable
  • RSDResultObject is a concrete implementation of the base result associated with a task, step, or asynchronous action.

    See more

    Declaration

    Swift

    public struct RSDResultObject : RSDResult, Codable
  • RSDDateCoderObject provides a concrete implementation of a RSDDateCoder. The date coder is used by the RSDDateRangeObject to encode and decode the minDate and maxDate properties as well as to get which components of a date should be stored in the answer for a given RSDInputField.

    This coder uses ISO 8601 format to determine which calendar components to request from the user and to store from the input result. The calendar is Gregorian and the resultFormatter is determined from the calendarComponents using the shared RSDFactory or the factory associated with the decoder if instantiated using a Decoder. The locale for the date formatters is en_US_POSIX by default.

    See more

    Declaration

    Swift

    public struct RSDDateCoderObject : RSDDateCoder, RawRepresentable
  • RSDTransformerStepObject is used in decoding a step with replacement properties for some or all of the steps in a section that is defined using a different resource. The factory will convert this step into an appropriate RSDSectionStep from the decoded object.

    See more

    Declaration

    Swift

    public struct RSDTransformerStepObject : RSDTransformerStep, Decodable