IT. Expert System.

Android Reference

SentenceSuggestionsInfo


android.view.textservice

Class SentenceSuggestionsInfo

  • All Implemented Interfaces:
    Parcelable


    public final class SentenceSuggestionsInfo
    extends Object
    implements Parcelable
    This class contains a metadata of suggestions returned from a text service (e.g. SpellCheckerService). The text service uses this class to return the suggestions for a sentence. See SuggestionsInfo which is used for suggestions for a word. This class extends the functionality of SuggestionsInfo as far as this class enables you to put multiple SuggestionsInfos on a sentence with the offsets and the lengths of all SuggestionsInfos.
    • Constructor Detail

      • SentenceSuggestionsInfo

        public SentenceSuggestionsInfo(SuggestionsInfo[] suggestionsInfos,
                               int[] offsets,
                               int[] lengths)
        Constructor.
        Parameters:
        suggestionsInfos - from the text service
        offsets - the array of offsets of suggestions
        lengths - the array of lengths of suggestions
      • SentenceSuggestionsInfo

        public SentenceSuggestionsInfo(Parcel source)
    • Method Detail

      • writeToParcel

        public void writeToParcel(Parcel dest,
                         int flags)
        Used to package this object into a Parcel.
        Specified by:
        writeToParcel in interface Parcelable
        Parameters:
        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
        Returns:
        a bitmask indicating the set of special object types marshalled by the Parcelable.
      • getSuggestionsCount

        public int getSuggestionsCount()
        Returns:
        the count of SuggestionsInfos this instance holds.
      • getOffsetAt

        public int getOffsetAt(int i)
        Parameters:
        i - the id of SuggestionsInfos this instance holds
        Returns:
        the offset of the specified SuggestionsInfo
      • getLengthAt

        public int getLengthAt(int i)
        Parameters:
        i - the id of SuggestionsInfos this instance holds
        Returns:
        the length of the specified SuggestionsInfo


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

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

License.
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: 394 / 158779030. Delta: 0.03315 с