RSDAnswerResult
public protocol RSDAnswerResult : RSDAnswerResultFinder, RSDResult
RSDAnswerResult
is a result that can be described using a single value.
-
The answer type of the answer result. This includes coding information required to encode and decode the value. The value is expected to conform to one of the coding types supported by the answer type.
Declaration
Swift
var answerType: RSDAnswerResultType { get }
-
The answer for the result.
Declaration
Swift
var value: Any? { get }
-
The question associated with this answer in localized text.
Declaration
Swift
var questionText: String? { get }
-
findAnswerResult(with:)
Extension methodThis method will return
self
if the identifier matches the identifier of this result. Otherwise, the method will returnnil
.Seealso
Declaration
Swift
public func findAnswerResult(with identifier: String) -> RSDAnswerResult?
Parameters
identifier
The identifier associated with the result.
Return Value
The result or
nil
if not found.