Android
android.text
public class

android.text.ClipboardManager

java.lang.Object
android.text.ClipboardManager

Interface to the clipboard service, for placing and retrieving text in the global clipboard.

You do not instantiate this class directly; instead, retrieve it through getSystemService(String).

Summary

Public Methods

          CharSequence  getText()
Returns the text on the clipboard.
          boolean  hasText()
Returns true if the clipboard contains text; false otherwise.
          void  setText(CharSequence text)
Sets the contents of the clipboard to the specified text.
Methods inherited from class java.lang.Object

Details

Public Methods

public CharSequence getText()

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.

public boolean hasText()

Returns true if the clipboard contains text; false otherwise.

public void setText(CharSequence text)

Sets the contents of the clipboard to the specified text.
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:56