Flutter Engine
The Flutter Engine
Instance Methods | List of all members
FakePasteboard Class Reference
Inheritance diagram for FakePasteboard:
FlutterPasteboard

Instance Methods

(NSInteger) - clearContents [implementation]
 
(NSString *) - stringForType: [implementation]
 
(BOOL- setString:forType: [implementation]
 
- Instance Methods inherited from FlutterPasteboard
(NSInteger) - clearContents
 
(NSString *) - stringForType:
 
(BOOL- setString:forType:
 
(BOOL- setString:forType: [implementation]
 

Detailed Description

Fake pasteboard implementation to allow tests to work in environments without a real pasteboard.

Definition at line 17 of file FlutterEngineTestUtils.mm.

Method Documentation

◆ clearContents

- (NSInteger) clearContents
implementation

Implements FlutterPasteboard.

Definition at line 1 of file FlutterEngineTestUtils.mm.

24 {
25 size_t changeCount = (_result != nil) ? 1 : 0;
26 _result = nil;
27 return changeCount;
28}

◆ setString:forType:

- (BOOL) setString: (NSString*)  string
forType: (NSPasteboardType)  dataType 
implementation

Implements FlutterPasteboard.

Definition at line 1 of file FlutterEngineTestUtils.mm.

34 :(NSString*)string forType:(NSPasteboardType)dataType {
35 _result = string;
36 return YES;
37}

◆ stringForType:

- (NSString *) stringForType: (NSPasteboardType)  dataType
implementation

Implements FlutterPasteboard.

Definition at line 1 of file FlutterEngineTestUtils.mm.

30 :(NSPasteboardType)dataType {
31 return _result;
32}

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