Skip to main content

GetTextAsync Method

Obsolete.

Note: This API is now obsolete.

Returns a string containing the text data on the clipboard.

Definition​

Namespace: Avalonia.Input.Platform
Assembly: Avalonia.Base (in Avalonia.Base.dll)

[ObsoleteAttribute("Use ClipboardExtensions.TryGetTextAsync instead")]
Task<string?> GetTextAsync()
View Source

Return Value​

Task(String)
A string containing text data, or null if no corresponding text data is available.

See Also​

Reference​

IClipboard Interface
Avalonia.Input.Platform Namespace