java.lang.Object | |
↳ | android.view.inputmethod.CompletionInfo |
Information about a single text completion that an editor has reported to an input method.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.os.Parcelable
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CREATOR | Used to make this class parcelable. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a simple completion with just text, no label.
| |||||||||||
Create a full completion with both text and label.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Describe the kinds of special objects contained in this Parcelable's
marshalled representation.
| |||||||||||
Return the abstract identifier for this completion, typically
corresponding to the id associated with it in the original adapter.
| |||||||||||
Return the user-visible label for the completion, or null if the plain
text should be shown.
| |||||||||||
Return the original position of this completion, typically
corresponding to its position in the original adapter.
| |||||||||||
Return the actual text associated with this completion.
| |||||||||||
Returns a string containing a concise, human-readable description of this
object.
| |||||||||||
Used to package this object into a
Parcel . |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
android.os.Parcelable
|
Used to make this class parcelable.
Create a simple completion with just text, no label.
Create a full completion with both text and label.
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
Return the abstract identifier for this completion, typically corresponding to the id associated with it in the original adapter.
Return the user-visible label for the completion, or null if the plain text should be shown. If non-null, this will be what the user sees as the completion option instead of the actual text.
Return the original position of this completion, typically corresponding to its position in the original adapter.
Return the actual text associated with this completion. This is the real text that will be inserted into the editor if the user selects it.
Returns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:
getClass().getName() + '@' + Integer.toHexString(hashCode())
See Writing a useful
toString
method
if you intend implementing your own toString
method.