Class

TransferableContent

Represents content that can be transferred between applications or processes.

Source set: Common
public class TransferableContent internal constructor(
    public val clipEntry: ClipEntry,
    public val clipMetadata: ClipMetadata,
    public val source: Source,
    public val platformTransferableContent: PlatformTransferableContent? = null,
)

Represents content that can be transferred between applications or processes.

Note; Consult platform-specific guidelines for best practices in content transfer operations.

Members

Source

Source set: Common
public class Source internal constructor(private val value: Int)

Defines the type of operation that a TransferableContent originates from.

Members

Companion

Source set: Common
public companion object

Properties

Keyboard

Source set: Common
public val Keyboard: Source

Indicates that the TransferableContent originates from the soft keyboard (also known as input method editor or IME)

DragAndDrop

Source set: Common
public val DragAndDrop: Source

Indicates that the TransferableContent was passed on by the system drag and drop.

Clipboard

Source set: Common
public val Clipboard: Source

Indicates that the TransferableContent comes from the clipboard via paste. (e.g. "Paste" action in the floating action menu or "Ctrl+V" key combination)

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: