mirror of
https://github.com/encounter/engine.git
synced 2026-07-10 03:18:43 -07:00
1a2714bbef
* engine force cursor support
41 lines
1.3 KiB
Objective-C
41 lines
1.3 KiB
Objective-C
// 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 <Foundation/Foundation.h>
|
|
|
|
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 <NSObject>
|
|
|
|
- (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_
|