IT. Expert System.

Android Reference

SpellCheckerService.Session


android.service.textservice

Class SpellCheckerService.Session

  • Enclosing class:
    SpellCheckerService


    public abstract static class SpellCheckerService.Session
    extends Object
    This abstract class should be overridden by a concrete implementation of a spell checker.
    • Constructor Detail

      • SpellCheckerService.Session

        public SpellCheckerService.Session()
    • Method Detail

      • setInternalISpellCheckerSession

        public final void setInternalISpellCheckerSession(android.service.textservice.SpellCheckerService.InternalISpellCheckerSession session)
      • onCreate

        public abstract void onCreate()
        This is called after the class is initialized, at which point it knows it can call getLocale() etc...
      • onGetSuggestions

        public abstract SuggestionsInfo onGetSuggestions(TextInfo textInfo,
                                       int suggestionsLimit)
        Get suggestions for specified text in TextInfo. This function will run on the incoming IPC thread. So, this is not called on the main thread, but will be called in series on another thread.
        Parameters:
        textInfo - the text metadata
        suggestionsLimit - the maximum number of suggestions to be returned
        Returns:
        SuggestionsInfo which contains suggestions for textInfo
      • onGetSuggestionsMultiple

        public SuggestionsInfo[] onGetSuggestionsMultiple(TextInfo[] textInfos,
                                                 int suggestionsLimit,
                                                 boolean sequentialWords)
        A batch process of onGetSuggestions. This function will run on the incoming IPC thread. So, this is not called on the main thread, but will be called in series on another thread.
        Parameters:
        textInfos - an array of the text metadata
        suggestionsLimit - the maximum number of suggestions to be returned
        sequentialWords - true if textInfos can be treated as sequential words.
        Returns:
        an array of SentenceSuggestionsInfo returned by onGetSuggestions(TextInfo, int)
      • onGetSentenceSuggestionsMultiple

        public SentenceSuggestionsInfo[] onGetSentenceSuggestionsMultiple(TextInfo[] textInfos,
                                                                 int suggestionsLimit)
        Get sentence suggestions for specified texts in an array of TextInfo. The default implementation splits the input text to words and returns SentenceSuggestionsInfo which contains suggestions for each word. This function will run on the incoming IPC thread. So, this is not called on the main thread, but will be called in series on another thread. When you override this method, make sure that suggestionsLimit is applied to suggestions that share the same start position and length.
        Parameters:
        textInfos - an array of the text metadata
        suggestionsLimit - the maximum number of suggestions to be returned
        Returns:
        an array of SentenceSuggestionsInfo returned by onGetSuggestions(TextInfo, int)
      • onCancel

        public void onCancel()
        Request to abort all tasks executed in SpellChecker. This function will run on the incoming IPC thread. So, this is not called on the main thread, but will be called in series on another thread.
      • onClose

        public void onClose()
        Request to close this session. This function will run on the incoming IPC thread. So, this is not called on the main thread, but will be called in series on another thread.
      • getLocale

        public String getLocale()
        Returns:
        Locale for this session
      • getBundle

        public Bundle getBundle()
        Returns:
        Bundle for this session


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: 36 / 158780183. Delta: 0.05470 с