ClipboardManager
abstract classClipboardManager
kotlin.Any | |
↳ | android.text.ClipboardManager |
Summary
Public constructors | |
---|---|
Public methods | |
---|---|
abstract CharSequence! |
getText() Returns the text on the clipboard. |
abstract Boolean |
hasText() Returns true if the clipboard contains text; false otherwise. |
abstract Unit |
setText(text: CharSequence!) Sets the contents of the clipboard to the specified text. |
Public constructors
ClipboardManager
ClipboardManager()
Public methods
getText
abstract fungetText(): 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
abstract funhasText(): Boolean
Deprecated: Deprecated in Java.
Returns true if the clipboard contains text; false otherwise.
setText
abstract funsetText(text: CharSequence!): Unit
Deprecated: Deprecated in Java.
Sets the contents of the clipboard to the specified text.