// Copyright 2013 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef SHELL_PLATFORM_IOS_FRAMEWORK_SOURCE_FLUTTERTEXTINPUTDELEGATE_H_ #define SHELL_PLATFORM_IOS_FRAMEWORK_SOURCE_FLUTTERTEXTINPUTDELEGATE_H_ #import typedef NS_ENUM(NSInteger, FlutterTextInputAction) { FlutterTextInputActionUnspecified, FlutterTextInputActionDone, FlutterTextInputActionGo, FlutterTextInputActionSend, FlutterTextInputActionSearch, FlutterTextInputActionNext, FlutterTextInputActionContinue, FlutterTextInputActionJoin, FlutterTextInputActionRoute, FlutterTextInputActionEmergencyCall, FlutterTextInputActionNewline, }; typedef NS_ENUM(NSInteger, FlutterFloatingCursorDragState) { FlutterFloatingCursorDragStateStart, FlutterFloatingCursorDragStateUpdate, FlutterFloatingCursorDragStateEnd, }; @protocol FlutterTextInputDelegate - (void)updateEditingClient:(int)client withState:(NSDictionary*)state; - (void)performAction:(FlutterTextInputAction)action withClient:(int)client; - (void)updateFloatingCursor:(FlutterFloatingCursorDragState)state withClient:(int)client withPosition:(NSDictionary*)point; @end #endif // SHELL_PLATFORM_IOS_FRAMEWORK_SOURCE_FLUTTERTEXTINPUTDELEGATE_H_