# PlatformDataTransferImpl

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/input/platform/trait-platformdatatransferimpl/

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

```rust
trait PlatformDataTransferImpl
```

The members a platform backend provides for a [`PlatformDataTransfer`](/docs/0.5.0/api/ferroui-base/input/platform/struct-platformdatatransfer/).

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/input/platform/platform_data_transfer.rs#L8)

## Members

- [`provide_formats`](#function-provide_formats)
- [`provide_items`](#function-provide_items)
- [`dispose`](#function-dispose)

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

### provide_formats

```rust
fn provide_formats(self: &Self) -> Result<Vec<DataFormat>, ClipboardError>
```

Provides the formats supported by the data transfer. Called until it
succeeds: a failure is reported to the caller and not kept.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/input/platform/platform_data_transfer.rs#L11)

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

### provide_items

```rust
fn provide_items(self: &Self) -> Result<Vec<Rc<PlatformDataTransferItem>>, ClipboardError>
```

Provides the items of the data transfer. Called until it succeeds: a
failure is reported to the caller and not kept.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/input/platform/platform_data_transfer.rs#L15)

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

### dispose

```rust
fn dispose(self: &Self, owner: &PlatformDataTransfer)
```

Releases the platform resources of the data transfer. `owner` tells
whether the formats and the items have been provided.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/input/platform/platform_data_transfer.rs#L19)

## Availability

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