Added in API level 1
Deprecated in API level 11

ClipboardManager


abstract class ClipboardManager
kotlin.Any
   ↳ android.text.ClipboardManager

Summary

Public constructors

Public methods
abstract CharSequence!

Returns the text on the clipboard.

abstract Boolean

Returns true if the clipboard contains text; false otherwise.

abstract Unit

Sets the contents of the clipboard to the specified text.

Public constructors

ClipboardManager

ClipboardManager()

Public methods

getText

Added in API level 1
abstract fun getText(): CharSequence!

Deprecated: Deprecated in Java.

Returns the text on the clipboard. It will eventually be possible to store types other than text too, in which case this will return null if the type cannot be coerced to text.

hasText

Added in API level 1
abstract fun hasText(): Boolean

Deprecated: Deprecated in Java.

Returns true if the clipboard contains text; false otherwise.

setText

Added in API level 1
abstract fun setText(text: CharSequence!): Unit

Deprecated: Deprecated in Java.

Sets the contents of the clipboard to the specified text.