RSDAnswerResult
public protocol RSDAnswerResult : RSDResult, RSDAnswerResultFinder
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 -
The answer for the result.
Declaration
Swift
var value: Any?
-
findAnswerResult(with:)Extension methodThis method will return
selfif the identifier matches the identifier of this result. Otherwise, the method will returnnil.Seealso
Declaration
Swift
public func findAnswerResult(with identifier:String ) -> RSDAnswerResult?Parameters
identifierThe identifier associated with the result.
Return Value
The result or
nilif not found.
View on GitHub
RSDAnswerResult Protocol Reference