When the is parameterised with objects that have
a custom toString() method,
or answerables resolving to such objects, the toString() method is called to produce the resulting description.
Using with objects without a custom toString method
When the is parameterised with complex objects that don't have a custom toString() method,
or Answerables resolving to such objects,
the resulting description will contain a JSON-like string representation of the object.
Creates a single-line description of an
Activityby transforming a template literal, parameterised with primitive data types, complex data structures, or any other answerables, into aQuestionAdapter<string>that can be used withTask.whereandInteraction.wheremethods.Trimming the output
Use
DescriptionFormattingOptionsto trim the descriptions of template parameters. By default, the output is displayed in full.Using with Questions
When
theis parameterised with questions, it retrieves their description by callingQuestion.describedByin the context of theActorperforming theActivity.If you'd like the question to be described using its formatted value instead of its description, use
Question.formattedValue.Using with objects with a custom
toStringmethodWhen
theis parameterised with objects that have a customtoString()method, or answerables resolving to such objects, thetoString()method is called to produce the resulting description.Using with objects without a custom
toStringmethodWhen
theis parameterised with complex objects that don't have a customtoString()method, orAnswerables resolving to such objects, the resulting description will contain a JSON-like string representation of the object.Using with masked values
When
theis parameterised with masked values, the resulting description will contain a masked representation of the values.Learn more
AnswerableQuestionQuestion.describedAsQuestionAdapterMasked