#include <FlutterSpellCheckPlugin.h>
Definition at line 11 of file FlutterSpellCheckPlugin.h.
◆ handleMethodCall:result:
Definition at line 32 of file FlutterSpellCheckPlugin.mm.
40
41
42
43 self.textChecker = [[UITextChecker alloc] init];
44 }
45 NSString* method = call.
method;
49 id language =
args[0];
51 if (language == [NSNull
null] ||
text == [NSNull
null]) {
52
53 result(nil);
54 return;
55 }
56
57 NSArray<NSDictionary<NSString*, id>*>* spellCheckResult =
58 [self findAllSpellCheckSuggestionsForText:text inLanguage:language];
59 result(spellCheckResult);
60 }
61}
void(^ FlutterResult)(id _Nullable result)
static FLUTTER_ASSERT_ARC NSString *const kInitiateSpellCheck
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args
#define FML_DCHECK(condition)
References args, FlutterMethodCall::arguments, FML_DCHECK, kInitiateSpellCheck, FlutterMethodCall::method, self, and text.
The documentation for this class was generated from the following files: