Structures
The following structures are available globally.
-
See moreRSDTaskResultObject
is a result associated with a task. This object includes a step history, task run UUID, schema identifier, and asynchronous results.Declaration
Swift
public struct RSDTaskResultObject : RSDTaskResult, Codable
-
See moreRSDTaskGroupObject
is a concrete implementation of theRSDTaskGroup
protocol.Declaration
Swift
public struct RSDTaskGroupObject : RSDTaskGroup, RSDEmbeddedIconVendor, Decodable
-
See moreRSDErrorResult
is a result that holds information about an error.Declaration
Swift
public struct RSDErrorResultObject : RSDErrorResult
-
See moreRSDTextFieldOptionsObject
defines the options for a text field.Declaration
Swift
public struct RSDTextFieldOptionsObject : RSDTextFieldOptions, Codable
-
See moreRSDImageWrapper
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 animageName
property as a key for accessing the image.Declaration
Swift
public struct RSDImageWrapper
-
See moreRSDFetchableImageThemeElementObject
is aCodable
concrete implementation ofRSDFetchableImageThemeElement
.Declaration
Swift
public struct RSDFetchableImageThemeElementObject : RSDFetchableImageThemeElement, RSDDecodableBundleInfo, Codable
-
See moreRSDAnimatedImageThemeElementObject
is aCodable
concrete implementation ofRSDAnimatedImageThemeElement
.Declaration
Swift
public struct RSDAnimatedImageThemeElementObject : RSDAnimatedImageThemeElement, RSDDecodableBundleInfo, Codable
-
See moreRSDUnitConverter
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.Declaration
Swift
public struct RSDUnitConverter
-
A simple struct that can be used to implement the
See moreRSDChoiceOptions
protocol.Declaration
Swift
public struct RSDChoiceOptionsObject : RSDChoiceOptions
-
See moreRSDResourceTransformerObject
is a concrete implementation of a codable resource transformer. The transformer can be used to create an object decoded from an embedded resource.Declaration
Swift
public struct RSDResourceTransformerObject : Codable
-
A simple struct that can be used to implement the
See moreRSDNumberPickerDataSource
protocol.Declaration
Swift
public struct RSDNumberPickerDataSourceObject : RSDNumberPickerDataSource
-
See moreRSDAnswerResultType
is aCodable
struct that can be used to describe how to encode and decode anRSDAnswerResult
. It carries information about the type of the value and how to encode it. This struct serves a different purpose from theRSDFormDataType
because it only carries information required to store a result and not additional information about presentation style.Declaration
Swift
public struct RSDAnswerResultType : Codable
-
See moreRSDColorThemeElementObject
tells the UI what the background color and foreground color are for a given view as well as whether or not the foreground elements should uselight style
.Declaration
Swift
public struct RSDColorThemeElementObject : RSDColorThemeElement, RSDDecodableBundleInfo, Codable
-
See moreRSDDateRangeObject
is a concrete implementation of aRSDDateRange
that defines the range of values appropriate for adate
data type.Declaration
Swift
public struct RSDDateRangeObject : RSDDateRange, Codable
-
See moreRSDNumberRangeObject
extends the properties of anRSDInputField
for adecimal
orinteger
data type.Declaration
Swift
public struct RSDNumberRangeObject : RSDNumberRange, Codable
-
See moreRSDChoiceObject
is a concrete implementation ofRSDChoice
that can be used to track a multiple choice, single choice, or multiple component input field where each choice in the input field maps to a specific value.Declaration
Swift
public struct RSDChoiceObject<T : Codable> : RSDChoice, RSDComparable, RSDEmbeddedIconVendor, Codable
-
See moreRSDUIActionObject
is a concrete implementation ofRSDUIAction
that can be used to customize the title and image displayed for a given action of the UI.Declaration
Swift
public struct RSDUIActionObject : RSDEmbeddedResourceUIAction, Codable
-
RSDSkipToUIActionObject
implements an action that includes an identifier for a step to skip to if this action is called. This is used by theRSDConditionalStepNavigator
to navigate based on anil
result.Seealso
RSDSurveyNavigationStep
Declaration
Swift
public struct RSDSkipToUIActionObject : RSDEmbeddedResourceUIAction, RSDSkipToUIAction
-
See moreRSDWebViewUIActionObject
implements an action that includes a pointer to a url that can display in a webview. The url can either be fully qualified or optionally point to an embedded resource. The resource bundle is assumed to be the main bundle if thebundleIdentifier
property isnil
.Declaration
Swift
public struct RSDWebViewUIActionObject : RSDEmbeddedResourceUIAction, RSDWebViewUIAction
-
The type of the step. This is used to decode the step using a
See moreRSDFactory
. It can also be used to customize the UI.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.Declaration
Swift
public struct RSDDeviceType : RawRepresentable, Codable
-
A simple struct that can be used to implement the
See moreRSDDatePickerDataSource
protocol.Declaration
Swift
public struct RSDDatePickerDataSourceObject : RSDDatePickerDataSource
-
See moreRSDUSHeightPickerDataSourceObject
is a custom height picker for use when theLocale
uses US Customary units (not metric system).Declaration
Swift
public struct RSDUSHeightPickerDataSourceObject : RSDUSMeasurementPickerDataSource
-
See moreRSDUSInfantMassPickerDataSource
is a custom weight picker for use when theLocale
uses US Customary units (not metric system) and the mass is for an infant inlb, oz
.Declaration
Swift
public struct RSDUSInfantMassPickerDataSourceObject : RSDUSMeasurementPickerDataSource
-
See moreRSDCollectionResultObject
is used include multiple results associated with a single step or async action that may have more that one result.Declaration
Swift
public struct RSDCollectionResultObject : RSDCollectionResult, Codable
-
See moreRSDConditionalStepNavigatorObject
is a concrete implementation of theRSDConditionalStepNavigator
protocol.Declaration
Swift
public struct RSDConditionalStepNavigatorObject : RSDConditionalStepNavigator, Decodable
-
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 includesexit
Declaration
Swift
public struct RSDIdentifier : RawRepresentable, Codable
-
See moreRSDTaskInfoStepObject
is a concrete implementation of theRSDTaskInfoStep
protocol.Declaration
Swift
public struct RSDTaskInfoStepObject : RSDTaskInfoStep, RSDSchemaInfo, RSDEmbeddedIconVendor, Decodable
-
The
See moreRSDFormUIHint
enum is a key word that can be used to describe the preferred UI for a form input field. This is intended as ahint
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.Declaration
Swift
public struct RSDFormUIHint : RawRepresentable, Codable
-
See moreRSDSchemaInfoObject
is a concrete implementation of theRSDSchemaInfo
protocol.Declaration
Swift
public struct RSDSchemaInfoObject : RSDSchemaInfo, Codable
-
Undocumented
Declaration
Swift
public struct RSDDocumentCreator
-
See moreRSDRecordMarker
is a concrete implementation ofRSDSampleRecord
that can be used to mark the step transitions for a recording.Declaration
Swift
public struct RSDRecordMarker : RSDSampleRecord
-
A simple struct that can be used to implement the
See moreRSDMultipleComponentOptions
protocol.Declaration
Swift
public struct RSDMultipleComponentOptionsObject : RSDMultipleComponentOptions
-
See moreRSDResultType
is an extendable string enum used byRSDFactory
to create the appropriate result type.Declaration
Swift
public struct RSDResultType : RawRepresentable, Codable
-
See moreRSDSectionStepObject
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.Declaration
Swift
public struct RSDSectionStepObject: RSDSectionStep, RSDStepValidator, Decodable
-
See moreRSDResourceType
is an extendable struct for describing the type of a resource. By default, these values will map to the file extension.Declaration
Swift
public struct RSDResourceType : RawRepresentable, Equatable, Hashable, Codable
-
RSDActiveUIStepCommand
is anOptionSet
for certain commonly used commands that are used at the beginning and end of an active step.Seealso
RSDActiveUIStep
Declaration
Swift
public struct RSDActiveUIStepCommand : RSDStringLiteralOptionSet
-
See moreRSDFileResultObject
is a concrete implementation of a result that holds a pointer to a file url.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 byRSDFactory
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
See moreRSDMutableStep
.Declaration
Swift
public struct RSDGenericStepObject : RSDGenericStep, Decodable
-
See moreRSDViewThemeElementObject
tells the UI where to find the view controller to use when instantiating theRSDStepController
.Declaration
Swift
public struct RSDViewThemeElementObject: RSDViewThemeElement, RSDDecodableBundleInfo, Codable
-
See moreRSDAnswerResultObject
is a concrete implementation of a result that can be described using a single value.Declaration
Swift
public struct RSDAnswerResultObject : RSDAnswerResult, Codable
-
RSDStandardAsyncActionConfiguration
is a concrete implementation ofRSDRecorderConfiguration
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 theCoreMotion
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)Declaration
Swift
public struct RSDStandardAsyncActionConfiguration : RSDRecorderConfiguration, Codable
-
See moreRSDComparableSurveyRuleObject
is a survey rule that matches an expected result to the answer and vends a skip identifier if the match is evaluated totrue
.Declaration
Swift
public struct RSDComparableSurveyRuleObject<T : Codable> : RSDComparableSurveyRule, Codable
-
Undocumented
See moreDeclaration
Swift
public struct RSDRegExValidatorObject : RSDCodableRegExMatchValidator
-
RSDDateCoderObject
provides a concrete implementation of aRSDDateCoder
. The date coder is used by theRSDDateRangeObject
to encode and decode theminDate
andmaxDate
properties as well as to get which components of a date should be stored in the answer for a givenRSDInputField
.This coder uses ISO 8601 format to determine which calendar components to request from the user and to store from the input result. The
See morecalendar
is Gregorian and theresultFormatter
is determined from thecalendarComponents
using the sharedRSDFactory
or the factory associated with the decoder if instantiated using aDecoder
. The locale for the date formatters isen_US_POSIX
by default.Declaration
Swift
public struct RSDDateCoderObject : RSDDateCoder, RawRepresentable
-
See moreRSDTransformerStepObject
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 appropriateRSDSectionStep
from the decoded object.Declaration
Swift
public struct RSDTransformerStepObject : RSDTransformerStep, Decodable