Flutter Engine
The Flutter Engine
|
Classes | |
interface | SpellCheckMethodHandler |
Public Member Functions | |
SpellCheckChannel (@NonNull DartExecutor dartExecutor) | |
void | setSpellCheckMethodHandler ( @Nullable SpellCheckMethodHandler spellCheckMethodHandler) |
Public Attributes | |
final MethodChannel | channel |
final MethodChannel.MethodCallHandler | parsingMethodHandler |
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 io.flutter.plugin.editing.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 io.flutter.plugin.editing.SpellCheckPlugin
, it will send back to the framework the
of spell check results (see
ArrayList<HashMap<String,Object>>io.flutter.plugin.editing.SpellCheckPlugin#onGetSentenceSuggestions
for details). The io.flutter.plugin.editing.SpellCheckPlugin
only handles one request to fetch spell check results at a time; see io.flutter.plugin.editing.SpellCheckPlugin#initiateSpellCheck
for details.
io.flutter.plugin.editing.SpellCheckPlugin
implements SpellCheckMethodHandler
to initiate spell check. Implement SpellCheckMethodHandler
to respond to spell check requests.
Definition at line 37 of file SpellCheckChannel.java.
|
inline |
Definition at line 75 of file SpellCheckChannel.java.
|
inline |
Sets the SpellCheckMethodHandler
which receives all requests to spell check the specified text sent through this channel.
Definition at line 84 of file SpellCheckChannel.java.
final MethodChannel io.flutter.embedding.engine.systemchannels.SpellCheckChannel.channel |
Definition at line 40 of file SpellCheckChannel.java.
final MethodChannel.MethodCallHandler io.flutter.embedding.engine.systemchannels.SpellCheckChannel.parsingMethodHandler |
Definition at line 44 of file SpellCheckChannel.java.