FileDocCategorySizeDatePackage
ClipboardService.javaAPI DocAndroid 1.5 API1533Wed May 06 22:42:00 BST 2009com.android.server

ClipboardService

public class ClipboardService extends IClipboard.Stub
Implementation of the clipboard for copy and paste.

Fields Summary
private CharSequence
mClipboard
Constructors Summary
public ClipboardService(android.content.Context context)
Instantiates the clipboard.


            
        
Methods Summary
public java.lang.CharSequencegetClipboardText()

        synchronized (this) {
            return mClipboard;
        }
    
public booleanhasClipboardText()

        synchronized (this) {
            return mClipboard.length() > 0;
        }
    
public voidsetClipboardText(java.lang.CharSequence text)

        synchronized (this) {
            if (text == null) {
                text = "";
            }
    
            mClipboard = text;
        }