RSDChoice
public protocol RSDChoice
RSDChoice
is used to describe a choice item for use with a multiple choice or multiple component input field.
-
A JSON encodable object to return as the value when this choice is selected. A
nil
value indicates that the user has selected to skip the question orprefers not to answer
.Declaration
Swift
var answerValue: Codable? { get }
-
Localized text string to display for the choice.
Declaration
Swift
var text: String? { get }
-
Additional detail text.
Declaration
Swift
var detail: String? { get }
-
For a multiple choice option, is this choice mutually exclusive? For example,
none of the above
.Declaration
Swift
var isExclusive: Bool { get }
-
An icon image that can be used for displaying the choice.
Declaration
Swift
var imageVendor: RSDImageVendor? { get }
-
Is the choice value equal to the given result?
Declaration
Swift
func isEqualToResult(_ result: RSDResult?) -> Bool
Parameters
result
A result to test for equality.
Return Value
true
if the values are equal.