# IScreenshotHandler

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-diagnostics/diagnostics/trait-iscreenshothandler/

**trait** · [`ferroui-diagnostics`](/docs/0.5.0/api/ferroui-diagnostics/) · v0.5.0

```rust
trait IScreenshotHandler
```

Allowed to define custom handler for Shreeshot

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Diagnostics/diagnostics/i_screenshot_handler.rs#L8)

## Members

- [`take`](#function-take)

<a id="function-take"></a>

### take

```rust
fn take(self: &Self, control: &Ref<Control>) -> LocalBoxFuture<std::io::Result<()>>
```

Handle the Screenshot

C# `Task Take(Control control)`: the future completes when the screenshot is taken; an
error is what the task of the original faults with.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Diagnostics/diagnostics/i_screenshot_handler.rs#L13)

## Trait implementations

- [`IScreenshotHandler`](/docs/0.5.0/api/ferroui-diagnostics/diagnostics/trait-iscreenshothandler/)

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
