Build 1.0_r1(from source)

android.text
Interface IClipboard

All Superinterfaces:
IInterface
All Known Implementing Classes:
IClipboard.Stub

public interface IClipboard
extends IInterface

Programming interface to the clipboard, which allows copying and pasting between applications.


Nested Class Summary
static class IClipboard.Stub
          Local-side IPC implementation stub class.
 
Method Summary
 CharSequence getClipboardText()
          Returns the text on the clipboard.
 boolean hasClipboardText()
          Returns true if the clipboard contains text; false otherwise.
 void setClipboardText(CharSequence text)
          Sets the contents of the clipboard to the specified text.
 
Methods inherited from interface android.os.IInterface
asBinder
 

Method Detail

getClipboardText

CharSequence getClipboardText()
                              throws RemoteException
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.

Throws:
RemoteException

setClipboardText

void setClipboardText(CharSequence text)
                      throws RemoteException
Sets the contents of the clipboard to the specified text.

Throws:
RemoteException

hasClipboardText

boolean hasClipboardText()
                         throws RemoteException
Returns true if the clipboard contains text; false otherwise.

Throws:
RemoteException

Build 1.0_r1(from source)

Please submit a feedback, bug or feature