Skip to main content

IAsyncDataTransfer Interface

Definition

Namespace:Avalonia.Input
Assembly:Avalonia.Base
Package:Avalonia

Represents an object providing a list of Avalonia.Input.IAsyncDataTransferItem usable by the clipboard.

public interface IAsyncDataTransfer

Implements: IDisposable

Remarks

See also

Properties

NameDescription
FormatsGets the formats supported by a Avalonia.Input.IAsyncDataTransfer.
ItemsGets a list of Avalonia.Input.IAsyncDataTransferItem contained in this object.

Formats Property

Gets the formats supported by a Avalonia.Input.IAsyncDataTransfer.

public System.Collections.Generic.IReadOnlyList<Avalonia.Input.DataFormat> Formats { get; set; }

Items Property

Gets a list of Avalonia.Input.IAsyncDataTransferItem contained in this object.

public System.Collections.Generic.IReadOnlyList<Avalonia.Input.IAsyncDataTransferItem> Items { get; set; }

Remarks

Some platforms (such as Windows and X11) may only support a single data item for all formats except Avalonia.Input.DataFormat.File.

Items returned by this property must stay valid until the Avalonia.Input.IAsyncDataTransfer is disposed.