Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public final class

SentenceSuggestionsInfo

extends Object
implements Parcelable
java.lang.Object
   ↳ android.view.textservice.SentenceSuggestionsInfo

Class Overview

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 SuggestionsInfo s on a sentence with the offsets and the lengths of all SuggestionsInfo s.

Summary

[Expand]
Inherited Constants
From interface android.os.Parcelable
Fields
public static final Creator < SentenceSuggestionsInfo > CREATOR Used to make this class parcelable.
Public Constructors
SentenceSuggestionsInfo ( SuggestionsInfo[] suggestionsInfos, int[] offsets, int[] lengths)
Constructor.
SentenceSuggestionsInfo ( Parcel source)
Public Methods
int describeContents ()
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
int getLengthAt (int i)
int getOffsetAt (int i)
int getSuggestionsCount ()
SuggestionsInfo getSuggestionsInfoAt (int i)
void writeToParcel ( Parcel dest, int flags)
Used to package this object into a Parcel .
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Fields

public static final Creator < SentenceSuggestionsInfo > CREATOR

Used to make this class parcelable.

Public Constructors

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

public SentenceSuggestionsInfo ( Parcel source)

Public Methods

public int describeContents ()

Describe the kinds of special objects contained in this Parcelable's marshalled representation.

Returns
  • a bitmask indicating the set of special object types marshalled by the Parcelable.

public int getLengthAt (int i)

Parameters
i the id of SuggestionsInfo s this instance holds
Returns

public int getOffsetAt (int i)

Parameters
i the id of SuggestionsInfo s this instance holds
Returns

public int getSuggestionsCount ()

Returns

public SuggestionsInfo getSuggestionsInfoAt (int i)

Parameters
i the id of SuggestionsInfo s this instance holds.
Returns

public void writeToParcel ( Parcel dest, int flags)

Used to package this object into a Parcel .

Parameters
dest The Parcel to be written.
flags The flags used for parceling.