Build 1.0_r1(from source)

android.text
Class ClipboardManager

java.lang.Object
  extended by android.text.ClipboardManager

public class ClipboardManager
extends Object

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 Context.getSystemService(java.lang.String).

See Also:
Context.getSystemService(java.lang.String)

Constructor Summary
ClipboardManager(Context context, Handler handler)
          
 
Method Summary
 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClipboardManager

public ClipboardManager(Context context,
                        Handler handler)

Method Detail

getText

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.


setText

public void setText(CharSequence text)
Sets the contents of the clipboard to the specified text.


hasText

public boolean hasText()
Returns true if the clipboard contains text; false otherwise.


Build 1.0_r1(from source)

Please submit a feedback, bug or feature