Flutter iOS Embedder
FlutterSpellCheckPlugin.h
Go to the documentation of this file.
1 // Copyright 2013 The Flutter Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_SOURCE_FLUTTERSPELLCHECKPLUGIN_H_
6 #define FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_SOURCE_FLUTTERSPELLCHECKPLUGIN_H_
7 
8 #include "flutter/fml/memory/weak_ptr.h"
9 
12 
13 @interface FlutterSpellCheckPlugin : NSObject
14 
15 - (void)handleMethodCall:(FlutterMethodCall*)call result:(FlutterResult)result;
16 
17 @end
18 
19 @interface FlutterSpellCheckResult : NSObject
20 
21 @property(nonatomic, copy, readonly) NSArray<NSString*>* suggestions;
22 @property(nonatomic, assign, readonly) NSRange misspelledRange;
23 
24 - (instancetype)init NS_UNAVAILABLE;
25 + (instancetype)new NS_UNAVAILABLE;
26 - (instancetype)initWithMisspelledRange:(NSRange)range
27  suggestions:(NSArray<NSString*>*)suggestions NS_DESIGNATED_INITIALIZER;
28 - (NSDictionary<NSString*, NSObject*>*)toDictionary;
29 
30 @end
31 
32 #endif // FLUTTER_SHELL_PLATFORM_DARWIN_IOS_FRAMEWORK_SOURCE_FLUTTERSPELLCHECKPLUGIN_H_
FlutterSpellCheckPlugin
Definition: FlutterSpellCheckPlugin.h:13
FlutterSpellCheckResult
Definition: FlutterSpellCheckPlugin.h:19
FlutterEngine.h
FlutterSpellCheckResult::misspelledRange
NSRange misspelledRange
Definition: FlutterSpellCheckPlugin.h:22
FlutterChannels.h
-[FlutterSpellCheckResult NS_UNAVAILABLE]
instancetype NS_UNAVAILABLE()
FlutterMethodCall
Definition: FlutterCodecs.h:220
FlutterSpellCheckResult::suggestions
NSArray< NSString * > * suggestions
Definition: FlutterSpellCheckPlugin.h:21
FlutterResult
void(^ FlutterResult)(id _Nullable result)
Definition: FlutterChannels.h:194
-[FlutterSpellCheckResult toDictionary]
NSDictionary< NSString *, NSObject * > * toDictionary()
Definition: FlutterSpellCheckPlugin.mm:153