public class ClipMetadata(public val clipDescription: ClipDescription)
Android specific class that contains the metadata of primary clip in android.content.ClipboardManager
Functions
hasText
public fun hasText(): Boolean
hasPlainText
public fun hasPlainText(): Boolean
hasHtml
public fun hasHtml(): Boolean
hasUrl
public fun hasUrl(): Boolean
public class ClipMetadata
Describes the representations a ClipEntry advertises without reading its content.
This is useful for checking whether the clipboard contains compatible data (for example, to determine whether to show or enable a "Paste" button) without triggering platform clipboard access warning.
Functions
hasText
public fun hasText(): Boolean
Reports whether the clip advertises a text representation. Use ClipEntry.readText to read an available text representation.
hasPlainText
public fun hasPlainText(): Boolean
Reports whether the clip advertises plain text. Use ClipEntry.readPlainText to read it.
hasHtml
public fun hasHtml(): Boolean
Reports whether the clip advertises an HTML representation. Use ClipEntry.readHtml to read it.
hasUrl
public fun hasUrl(): Boolean
Reports whether the clip advertises a URL representation. Use ClipEntry.readUrl to read it.