Table of Contents

Method GetDataAsync

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

GetDataAsync()

Retrieves the data that is currently on the system clipboard, or null if there is no data on the clipboard. Operation is performed asynchroniously.

public virtual Task<IDataObject?> GetDataAsync()

Returns

Task<IDataObject>

GetDataAsync(Action<IDataObject?>)

Retrieves the data that is currently on the system clipboard, or null if there is no data on the clipboard. Operation is performed asynchroniously.

public virtual void GetDataAsync(Action<IDataObject?> action)

Parameters

action Action<IDataObject>

Action to call after operation is completed.