IT. Expert System.

Android Reference



Class CompletionInfo

  • All Implemented Interfaces:

    public final class CompletionInfo
    extends Object
    implements Parcelable
    Information about a single text completion that an editor has reported to an input method.
    • Constructor Detail

      • CompletionInfo

        public CompletionInfo(long id,
                      int index,
                      CharSequence text)
        Create a simple completion with just text, no label.
      • CompletionInfo

        public CompletionInfo(long id,
                      int index,
                      CharSequence text,
                      CharSequence label)
        Create a full completion with both text and label.
    • Method Detail

      • getId

        public long getId()
        Return the abstract identifier for this completion, typically corresponding to the id associated with it in the original adapter.
      • getPosition

        public int getPosition()
        Return the original position of this completion, typically corresponding to its position in the original adapter.
      • getText

        public CharSequence getText()
        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.
      • getLabel

        public CharSequence getLabel()
        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.
      • toString

        public String toString()
        Description copied from class: Object
        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.

        toString in class Object
        a printable representation of this object.
      • writeToParcel

        public void writeToParcel(Parcel dest,
                         int flags)
        Used to package this object into a Parcel.
        Specified by:
        writeToParcel in interface Parcelable
        dest - The Parcel to be written.
        flags - The flags used for parceling.
      • describeContents

        public int describeContents()
        Description copied from interface: Parcelable
        Describe the kinds of special objects contained in this Parcelable's marshalled representation.
        Specified by:
        describeContents in interface Parcelable
        a bitmask indicating the set of special object types marshalled by the Parcelable.


Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)





Java Script








Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 518 / 159530456. Delta: 0.07585 с