IT. Expert System.

Android Reference

SuggestionsInfo


android.view.textservice

Class SuggestionsInfo

  • All Implemented Interfaces:
    Parcelable


    public final class SuggestionsInfo
    extends Object
    implements Parcelable
    This class contains a metadata of suggestions from the text service
    • Field Detail

      • RESULT_ATTR_IN_THE_DICTIONARY

        public static final int RESULT_ATTR_IN_THE_DICTIONARY
        Flag of the attributes of the suggestions that can be obtained by getSuggestionsAttributes(): this tells that the requested word was found in the dictionary in the text service.
        See Also:
        Constant Field Values
      • RESULT_ATTR_LOOKS_LIKE_TYPO

        public static final int RESULT_ATTR_LOOKS_LIKE_TYPO
        Flag of the attributes of the suggestions that can be obtained by getSuggestionsAttributes(): this tells that the text service thinks the requested word looks like a typo.
        See Also:
        Constant Field Values
      • RESULT_ATTR_HAS_RECOMMENDED_SUGGESTIONS

        public static final int RESULT_ATTR_HAS_RECOMMENDED_SUGGESTIONS
        Flag of the attributes of the suggestions that can be obtained by getSuggestionsAttributes(): this tells that the text service thinks the result suggestions include highly recommended ones.
        See Also:
        Constant Field Values
    • Constructor Detail

      • SuggestionsInfo

        public SuggestionsInfo(int suggestionsAttributes,
                       String[] suggestions)
        Constructor.
        Parameters:
        suggestionsAttributes - from the text service
        suggestions - from the text service
      • SuggestionsInfo

        public SuggestionsInfo(int suggestionsAttributes,
                       String[] suggestions,
                       int cookie,
                       int sequence)
        Constructor.
        Parameters:
        suggestionsAttributes - from the text service
        suggestions - from the text service
        cookie - the cookie of the input TextInfo
        sequence - the cookie of the input TextInfo
      • SuggestionsInfo

        public SuggestionsInfo(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.
      • setCookieAndSequence

        public void setCookieAndSequence(int cookie,
                                int sequence)
        Set the cookie and the sequence of SuggestionsInfo which are set to TextInfo from a client application
        Parameters:
        cookie - the cookie of an input TextInfo
        sequence - the cookie of an input TextInfo
      • getCookie

        public int getCookie()
        Returns:
        the cookie which may be set by a client application
      • getSequence

        public int getSequence()
        Returns:
        the sequence which may be set by a client application
      • getSuggestionsAttributes

        public int getSuggestionsAttributes()
        Returns:
        the attributes of suggestions. This includes whether the spell checker has the word in its dictionary or not and whether the spell checker has confident suggestions for the word or not.
      • getSuggestionsCount

        public int getSuggestionsCount()
        Returns:
        the count of the suggestions. If there's no suggestions at all, this method returns -1. Even if this method returns 0, it doesn't necessarily mean that there are no suggestions for the requested word. For instance, the caller could have been asked to limit the maximum number of suggestions returned.
      • getSuggestionAt

        public String getSuggestionAt(int i)
        Parameters:
        i - the id of suggestions
        Returns:
        the suggestion at the specified id
      • describeContents

        public int describeContents()
        Used to make this class parcelable.
        Specified by:
        describeContents in interface Parcelable
        Returns:
        a bitmask indicating the set of special object types marshalled by the Parcelable.


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: 98 / 158778734. Delta: 0.02320 с