Flutter Engine
The Flutter Engine
|
Public Member Functions | |
SpellCheckPlugin ( @NonNull TextServicesManager textServicesManager, @NonNull SpellCheckChannel spellCheckChannel) | |
void | destroy () |
void | initiateSpellCheck ( @NonNull String locale, @NonNull String text, @NonNull MethodChannel.Result result) |
void | performSpellCheck (@NonNull String locale, @NonNull String text) |
void | onGetSentenceSuggestions (SentenceSuggestionsInfo[] results) |
void | onGetSuggestions (SuggestionsInfo[] results) |
void | initiateSpellCheck ( @NonNull String locale, @NonNull String text, @NonNull MethodChannel.Result result) |
Static Public Attributes | |
static final String | START_INDEX_KEY = "startIndex" |
static final String | END_INDEX_KEY = "endIndex" |
static final String | SUGGESTIONS_KEY = "suggestions" |
Package Attributes | |
MethodChannel.Result | pendingResult |
SpellCheckPlugin
is the implementation of all functionality needed for spell check for text input.
The plugin handles requests for spell check sent by the io.flutter.embedding.engine.systemchannels.SpellCheckChannel
via sending requests to the Android spell checker. It also receives the spell check results from the service and sends them back to the framework through the io.flutter.embedding.engine.systemchannels.SpellCheckChannel
.
Definition at line 30 of file SpellCheckPlugin.java.
|
inline |
Definition at line 48 of file SpellCheckPlugin.java.
|
inline |
Unregisters this SpellCheckPlugin
as the
, for the
SpellCheckChannel.SpellCheckMethodHandlerio.flutter.embedding.engine.systemchannels.SpellCheckChannel
, and closes the most recently opened SpellCheckerSession
.
Do not invoke any methods on a SpellCheckPlugin
after invoking this method.
Definition at line 65 of file SpellCheckPlugin.java.
|
inline |
Initiates call to native spell checker to spell check specified text if there is no result awaiting a response.
Implements io.flutter.embedding.engine.systemchannels.SpellCheckChannel.SpellCheckMethodHandler.
Definition at line 78 of file SpellCheckPlugin.java.
|
inline |
Callback for Android spell check API that decomposes results and send results through the SpellCheckChannel
.
Spell check results are encoded as dictionaries with a format that looks like
{
startIndex: 0,
endIndex: 5,
suggestions: [hello, ...]
}
where there may be up to 5 suggestions.
Definition at line 125 of file SpellCheckPlugin.java.
|
inline |
Definition at line 180 of file SpellCheckPlugin.java.
|
inline |
Calls on the Android spell check API to spell check specified text.
referToSpellCheckerLanguageSettings=
Definition at line 91 of file SpellCheckPlugin.java.
|
static |
Definition at line 39 of file SpellCheckPlugin.java.
|
package |
Definition at line 42 of file SpellCheckPlugin.java.
|
static |
Definition at line 38 of file SpellCheckPlugin.java.
|
static |
Definition at line 40 of file SpellCheckPlugin.java.