DataBundle

interface DataBundle

Represents a set of data keyed by MimeType. These bundles are used in drag-drop operations since they allow arbitrary data to be encoded for data-transfer.

Inheritors

Properties

Link copied to clipboard
abstract val includedTypes: List<MimeType<*>>

List of MimeTypes contained in the bundle

Functions

Link copied to clipboard
abstract operator fun <T> contains(type: MimeType<T>): Boolean

Check whether data for the given MimeType is contained in this bundle

Link copied to clipboard
abstract operator fun <T> get(type: MimeType<T>): T?

Read data for the given MimeType

Link copied to clipboard
open operator fun plus(other: DataBundle): CompositeBundle

Creates a CompositeBundle by joining this with the given bundle

Inherited functions

Link copied to clipboard
inline fun <T : Any> DataBundle.contains(): Boolean
Link copied to clipboard
inline operator fun <T : Any> DataBundle.invoke(): T?