Structures
The following structures are available globally.
-
See moreRSDTaskResultObjectis 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 moreRSDTaskGroupObjectis a concrete implementation of theRSDTaskGroupprotocol.Declaration
Swift
public struct RSDTaskGroupObject : RSDTaskGroup, RSDEmbeddedIconVendor, Decodable
-
See moreRSDErrorResultis a result that holds information about an error.Declaration
Swift
public struct RSDErrorResultObject : RSDErrorResult
-
See moreRSDTextFieldOptionsObjectdefines the options for a text field.Declaration
Swift
public struct RSDTextFieldOptionsObject : RSDTextFieldOptions, Codable
-
See moreRSDImageWrappervends 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 animageNameproperty as a key for accessing the image.Declaration
Swift
public struct RSDImageWrapper
-
See moreRSDFetchableImageThemeElementObjectis aCodableconcrete implementation ofRSDFetchableImageThemeElement.Declaration
Swift
public struct RSDFetchableImageThemeElementObject : RSDFetchableImageThemeElement, RSDDecodableBundleInfo, Codable -
See moreRSDAnimatedImageThemeElementObjectis aCodableconcrete implementation ofRSDAnimatedImageThemeElement.Declaration
Swift
public struct RSDAnimatedImageThemeElementObject : RSDAnimatedImageThemeElement, RSDDecodableBundleInfo, Codable
-
See moreRSDUnitConverteris 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 moreRSDChoiceOptionsprotocol.Declaration
Swift
public struct RSDChoiceOptionsObject : RSDChoiceOptions
-
See moreRSDResourceTransformerObjectis 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 moreRSDNumberPickerDataSourceprotocol.Declaration
Swift
public struct RSDNumberPickerDataSourceObject : RSDNumberPickerDataSource
-
See moreRSDAnswerResultTypeis aCodablestruct 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 theRSDFormDataTypebecause it only carries information required to store a result and not additional information about presentation style.Declaration
Swift
public struct RSDAnswerResultType : Codable
-
See moreRSDColorThemeElementObjecttells 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 moreRSDDateRangeObjectis a concrete implementation of aRSDDateRangethat defines the range of values appropriate for adatedata type.Declaration
Swift
public struct RSDDateRangeObject : RSDDateRange, Codable -
See moreRSDNumberRangeObjectextends the properties of anRSDInputFieldfor adecimalorintegerdata type.Declaration
Swift
public struct RSDNumberRangeObject : RSDNumberRange, Codable
-
See moreRSDChoiceObjectis a concrete implementation ofRSDChoicethat 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 moreRSDUIActionObjectis a concrete implementation ofRSDUIActionthat can be used to customize the title and image displayed for a given action of the UI.Declaration
Swift
public struct RSDUIActionObject : RSDEmbeddedResourceUIAction, Codable -
RSDSkipToUIActionObjectimplements an action that includes an identifier for a step to skip to if this action is called. This is used by theRSDConditionalStepNavigatorto navigate based on anilresult.See moreSeealso
RSDSurveyNavigationStepDeclaration
Swift
public struct RSDSkipToUIActionObject : RSDEmbeddedResourceUIAction, RSDSkipToUIAction -
See moreRSDWebViewUIActionObjectimplements 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 thebundleIdentifierproperty 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
-
RSDDeviceTypedescribes 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.See moreNote
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 moreRSDDatePickerDataSourceprotocol.Declaration
Swift
public struct RSDDatePickerDataSourceObject : RSDDatePickerDataSource
-
See moreRSDUSHeightPickerDataSourceObjectis a custom height picker for use when theLocaleuses US Customary units (not metric system).Declaration
Swift
public struct RSDUSHeightPickerDataSourceObject : RSDUSMeasurementPickerDataSource -
See moreRSDUSInfantMassPickerDataSourceis a custom weight picker for use when theLocaleuses US Customary units (not metric system) and the mass is for an infant inlb, oz
.Declaration
Swift
public struct RSDUSInfantMassPickerDataSourceObject : RSDUSMeasurementPickerDataSource
-
See moreRSDCollectionResultObjectis 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 moreRSDConditionalStepNavigatorObjectis a concrete implementation of theRSDConditionalStepNavigatorprotocol.Declaration
Swift
public struct RSDConditionalStepNavigatorObject : RSDConditionalStepNavigator, Decodable
-
RSDIdentifieris 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.See moreNote
The base implementation includesexit
Declaration
Swift
public struct RSDIdentifier : RawRepresentable, Codable
-
See moreRSDTaskInfoStepObjectis a concrete implementation of theRSDTaskInfoStepprotocol.Declaration
Swift
public struct RSDTaskInfoStepObject : RSDTaskInfoStep, RSDSchemaInfo, RSDEmbeddedIconVendor, Decodable
-
The
See moreRSDFormUIHintenum 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 moreRSDSchemaInfoObjectis a concrete implementation of theRSDSchemaInfoprotocol.Declaration
Swift
public struct RSDSchemaInfoObject : RSDSchemaInfo, Codable
-
Undocumented
Declaration
Swift
public struct RSDDocumentCreator
-
See moreRSDRecordMarkeris a concrete implementation ofRSDSampleRecordthat 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 moreRSDMultipleComponentOptionsprotocol.Declaration
Swift
public struct RSDMultipleComponentOptionsObject : RSDMultipleComponentOptions
-
See moreRSDResultTypeis an extendable string enum used byRSDFactoryto create the appropriate result type.Declaration
Swift
public struct RSDResultType : RawRepresentable, Codable
-
See moreRSDSectionStepObjectis 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 moreRSDResourceTypeis 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
-
RSDActiveUIStepCommandis anOptionSetfor certain commonly used commands that are used at the beginning and end of an active step.See moreSeealso
RSDActiveUIStepDeclaration
Swift
public struct RSDActiveUIStepCommand : RSDStringLiteralOptionSet
-
See moreRSDFileResultObjectis a concrete implementation of a result that holds a pointer to a file url.Declaration
Swift
public struct RSDFileResultObject : RSDFileResult, Codable
-
RSDGenericStepObjectis a step with key/value pairs decoded from a dictionary. This is the default step returned byRSDFactoryfor 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 moreRSDViewThemeElementObjecttells the UI where to find the view controller to use when instantiating theRSDStepController.Declaration
Swift
public struct RSDViewThemeElementObject: RSDViewThemeElement, RSDDecodableBundleInfo, Codable
-
See moreRSDAnswerResultObjectis a concrete implementation of a result that can be described using a single value.Declaration
Swift
public struct RSDAnswerResultObject : RSDAnswerResult, Codable
-
RSDStandardAsyncActionConfigurationis a concrete implementation ofRSDRecorderConfigurationthat can be used to decode an async configuration for a recorder.See moreNote
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 theCoreMotionframework. 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 moreRSDComparableSurveyRuleObjectis 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
-
RSDDateCoderObjectprovides a concrete implementation of aRSDDateCoder. The date coder is used by theRSDDateRangeObjectto encode and decode theminDateandmaxDateproperties 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 morecalendaris Gregorian and theresultFormatteris determined from thecalendarComponentsusing the sharedRSDFactoryor 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 moreRSDTransformerStepObjectis 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 appropriateRSDSectionStepfrom the decoded object.Declaration
Swift
public struct RSDTransformerStepObject : RSDTransformerStep, Decodable
View on GitHub
Structures Reference