# IAsyncTypewriter

Interface in [Yarn.Unity](https://docs.yarnspinner.dev/api/csharp/yarn.unity)

## Summary

An object that can handle delivery of a line's text over time.

```csharp
public interface IAsyncTypewriter
```

## Methods

| Name                                                                                                                                                                                  | Description                                                                                                                                       |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
| [ContentDidDismiss()](https://docs.yarnspinner.dev/api/csharp/yarn.unity/yarn.unity.iasynctypewriter/yarn.unity.iasynctypewriter.contentdiddismiss)                                   | Called after the content has been visibly hidden.                                                                                                 |
| [ContentWillDismiss()](https://docs.yarnspinner.dev/api/csharp/yarn.unity/yarn.unity.iasynctypewriter/yarn.unity.iasynctypewriter.contentwilldismiss)                                 | Called right before the content will be visibly hidden                                                                                            |
| [PrepareForContent(Markup.MarkupParseResult)](https://docs.yarnspinner.dev/api/csharp/yarn.unity/yarn.unity.iasynctypewriter/yarn.unity.iasynctypewriter.prepareforcontent)           | Called by the presenter before content has been shown. This gives the typewriter it's chance to do any setup before the content is visibly shown. |
| [RunTypewriter(Markup.MarkupParseResult,CancellationToken)](https://docs.yarnspinner.dev/api/csharp/yarn.unity/yarn.unity.iasynctypewriter/yarn.unity.iasynctypewriter.runtypewriter) | Displays the contents of a line over time.                                                                                                        |

## Properties

| Name                                                                                                                                                    | Description                                                                                   |
| ------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- |
| [ActionMarkupHandlers](https://docs.yarnspinner.dev/api/csharp/yarn.unity/yarn.unity.iasynctypewriter/yarn.unity.iasynctypewriter.actionmarkuphandlers) | The list of action markup handlers that this typewriter should call out to while typewriting. |
| [TextElement](https://docs.yarnspinner.dev/api/csharp/yarn.unity/yarn.unity.iasynctypewriter/yarn.unity.iasynctypewriter.textelement)                   | The main text element that the presenter intends the typewriter to work with                  |
