ClipboardDataReader class abstract

Inheritance
Implementers

Constructors

ClipboardDataReader()

Properties

hashCode int
The hash code for this object.
no setterinherited
platformFormats List<PlatformFormat>
Returns list of platform specific format identifiers for this item.
no setterinherited
rawReader → DataReaderItem?
If this reader is backed by raw DataReaderItem returns it.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

canProvide(DataFormat<Object> format) bool
Returns true value for data format is possibly available in this reader.
inherited
getFile(FileFormat? format, AsyncValueChanged<DataReaderFile> onFile, {ValueChanged<Object>? onError, bool allowVirtualFiles = true, bool synthesizeFilesFromURIs = true}) ReadProgress?
Loads file for the given format.
inherited
getFormats(List<DataFormat<Object>> allFormats) List<DataFormat<Object>>
Returns subset of allFormats that this reader can provide, sorted according to priority set by source application.
inherited
getSuggestedName() Future<String?>
Returns suggested file name for the contents (if available). This is the best guess that can be provided from reader. You may be able to get more accurate name after receiving the DataReaderFile through getFile.
inherited
getValue<T extends Object>(ValueFormat<T> format, AsyncValueChanged<T?> onValue, {ValueChanged<Object>? onError}) ReadProgress?
Loads the value for the given format.
inherited
getVirtualFileReceiver({FileFormat? format}) Future<VirtualFileReceiver?>
Returns virtual file receiver for given format or null if virtual data for the format is not available. If format is not specified returns receiver for format with highest priority (if any).
inherited
hasValue(DataFormat<Object> format) bool
inherited
isSynthesized(DataFormat<Object> format) bool
Returns whether value for given format is being synthesized. On Windows DIB images are accessible as PNG (converted on demand), same thing is done on macOS for TIFF images.
inherited
isVirtual(DataFormat<Object> format) bool
When true, data in this format is virtual. It means it might not be readily available and may be generated on demand. This is true for example when dropping images from iPhone (they will be downloaded after dropped).
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readValue<T extends Object>(ValueFormat<T> format) Future<T?>
Convenience method that exposes loading value as Future.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

forItemInfo(DataReaderItemInfo item) ClipboardDataReader
Creates data reader from provided item info.
override