ClipboardReader class
Clipboard reader exposes contents of the clipboard.
- Inheritance
-
- Object
- DataReader
- ClipboardDataReader
- ClipboardReader
Constructors
-
ClipboardReader(List<
ClipboardDataReader> items)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
items
→ List<
ClipboardDataReader> -
Individual items of this clipboard reader.
final
-
platformFormats
→ List<
PlatformFormat> -
Returns list of platform specific format identifiers for this item.
no setteroverride
- 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.
override
-
getFile(
FileFormat? format, AsyncValueChanged< DataReaderFile> onFile, {ValueChanged<Object> ? onError, bool allowVirtualFiles = true, bool synthesizeFilesFromURIs = true}) → ReadProgress? -
Loads file for the given format.
override
-
getFormats(
List< DataFormat< allFormats) → List<Object> >DataFormat< Object> > -
Returns subset of
allFormats
that this reader can provide, sorted according to priority set by source application.override -
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.
override
-
getValue<
T extends Object> (ValueFormat< T> format, AsyncValueChanged<T?> onValue, {ValueChanged<Object> ? onError}) → ReadProgress? -
Loads the value for the given format.
override
-
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).override -
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.
override
-
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).override -
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.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited