Flutter Engine
 
Loading...
Searching...
No Matches
FlutterUndoManagerPlugin Class Reference

#include <FlutterUndoManagerPlugin.h>

Inheritance diagram for FlutterUndoManagerPlugin:

Instance Methods

(instancetype) - NS_UNAVAILABLE
 
(instancetype) - initWithDelegate:
 
(void) - handleMethodCall:result:
 

Class Methods

(instancetype) + NS_UNAVAILABLE
 

Detailed Description

Definition at line 13 of file FlutterUndoManagerPlugin.h.

Method Documentation

◆ handleMethodCall:result:

- (void) handleMethodCall: (FlutterMethodCall*)  call
result: (FlutterResult result 

Definition at line 19 of file FlutterUndoManagerPlugin.mm.

38 :(FlutterMethodCall*)call result:(FlutterResult)result {
39 NSString* method = call.method;
40 id args = call.arguments;
41 if ([method isEqualToString:kSetUndoStateMethod]) {
42 self.undoManager = self.undoManagerDelegate.undoManager;
43 [self setUndoState:args];
44 result(nil);
45 } else {
47 }
48}
void(^ FlutterResult)(id _Nullable result)
FLUTTER_DARWIN_EXPORT NSObject const * FlutterMethodNotImplemented
static NSString *const kSetUndoStateMethod
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args

References self.

◆ initWithDelegate:

- (instancetype) initWithDelegate: (id<FlutterUndoManagerDelegate>)  NS_DESIGNATED_INITIALIZER

Definition at line 19 of file FlutterUndoManagerPlugin.mm.

24 :(id<FlutterUndoManagerDelegate>)undoManagerDelegate {
25 self = [super init];
26
27 if (self) {
28 _undoManagerDelegate = undoManagerDelegate;
29 }
30
31 return self;
32}

◆ NS_UNAVAILABLE [1/2]

- (instancetype) NS_UNAVAILABLE

◆ NS_UNAVAILABLE [2/2]

+ (instancetype) NS_UNAVAILABLE

The documentation for this class was generated from the following files: