Contents

SiriScenarioExpectationBuilder

A result builder that collects the expectations you attach to a scenario.

Declaration

@resultBuilder enum SiriScenarioExpectationBuilder

Overview

Each buildExpression is a kind this level accepts; a kind without one here does not compile in this level’s block.

A scenario-level expectation is checked against every turn together, so this level takes Calls, Finds, OnScreen and Loads. SiriResponse is not one of them: a Siri response expectation is checked on the turn that produces the response, so it is written in a turn’s block only.

Topics

Building scenario expectations

Defining components

See Also

Creating a scenario with expectations