Class SpellCheckChannel

java.lang.Object
io.flutter.embedding.engine.systemchannels.SpellCheckChannel

public class SpellCheckChannel extends Object
SpellCheckChannel is a platform channel that is used by the framework to initiate spell check in the embedding and for the embedding to send back the results.

When there is new text to be spell checked, the framework will send to the embedding the message SpellCheck.initiateSpellCheck with the String locale to spell check with and the String of text to spell check as arguments. In response, the SpellCheckPlugin will make a call to Android's spell check service to fetch spell check results for the specified text.

Once the spell check results are received by the SpellCheckPlugin, it will send back to the framework the ArrayList<HashMap<String,Object>> of spell check results (see SpellCheckPlugin.onGetSentenceSuggestions(android.view.textservice.SentenceSuggestionsInfo[]) for details). The SpellCheckPlugin only handles one request to fetch spell check results at a time; see SpellCheckPlugin.initiateSpellCheck(java.lang.String, java.lang.String, io.flutter.plugin.common.MethodChannel.Result) for details.

SpellCheckPlugin implements SpellCheckChannel.SpellCheckMethodHandler to initiate spell check. Implement SpellCheckChannel.SpellCheckMethodHandler to respond to spell check requests.