> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# On Display • Rust AI Agent SDK

> on_display: Handle display event

# on\_display

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**DisplayCallback**](../classes/DisplayCallback) class in the [**display\_types**](../modules/display_types) module.

Handle display event

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def on_display(&self, event: &DisplayEvent) -> ()
```

## Parameters

<ParamField query="event" type="&DisplayEvent" required={true}>
  No description available.
</ParamField>

### Returns

<ResponseField name="Returns" type="()">
  The result of the operation.
</ResponseField>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Rust Display" icon="display" href="/docs/rust/display" />

  <Card title="Rust Output" icon="file-export" href="/docs/rust/output" />
</CardGroup>
