RSDFormDataType
public enum RSDFormDataType
RSDFormDataType
is used to describe the data type for a form input. This is different from the
RSDAnswerResultType
which is a struct that can be used to encode and decode the input field
answer value. This describes the type of information required by the input field.
-
Base data types are basic types that can be defined with only a base type.
Declaration
Swift
case base(BaseType)
-
Collection data types are some kind of a collection with a base type.
Declaration
Swift
case collection(CollectionType, BaseType)
-
A measurement is a human-data measurement. The measurement range indicates the expected size of the human being measured. In US English units, this is required to determine the expected localization for the measurement.
For example, an infant weight would be in lb/oz whereas an adult weight would be in lb. Default range is for an adult.
Declaration
Swift
case measurement(MeasurementType, MeasurementRange)
-
Custom data types are undefined in the base SDK.
Declaration
Swift
case custom(String, BaseType)
-
The base type of the form input field. This is used to indicate what the type is of the value being prompted and will affect the choice of allowed formatters.
See moreDeclaration
Swift
public enum BaseType: String
-
The collection type for the input field. The supported types are for choice-style questions or multiple component questions where the user selected from one or more fields to build a single answer result.
See moreDeclaration
Swift
public enum CollectionType: String
-
A measurement type is a human-data measurement such as height or weight.
See moreDeclaration
Swift
public enum MeasurementType: String
-
The measurement range is used to determine units that are appropriate to the size of the person.
See moreDeclaration
Swift
public enum MeasurementRange: String
-
List of the standard UI hints that are valid for this data type.
Declaration
Swift
public var validStandardUIHints: Set<RSDFormUIHint>
-
The set of ui hints that can display using a list format such as a scrolling list.
Declaration
Swift
public var listSelectionHints : Set<RSDFormUIHint>
-
Maps the base type of the
RSDFormDataType
to the base type of theRSDAnswerResultType
.Declaration
Swift
public func defaultAnswerResultBaseType() -> RSDAnswerResultType.BaseType
Return Value
the default result answer type for this input field.
-
List of all the standard types.
Declaration
Swift
public static func allStandardTypes() -> [RSDFormDataType]
-
Declaration
Swift
public init?(rawValue: RawValue)
-
Declaration
Swift
public var rawValue: String
-
Declaration
Swift
public var hashValue : Int
-
Declaration
Swift
public init(stringLiteral value: String)