Flutter Engine
The Flutter Engine
Instance Methods | List of all members
FlutterPasteboard Class Reference

#import <FlutterEngine_Internal.h>

Inheritance diagram for FlutterPasteboard:
FakePasteboard

Instance Methods

(NSInteger) - clearContents
 
(NSString *) - stringForType:
 
(BOOL- setString:forType:
 
(BOOL- setString:forType: [implementation]
 

Detailed Description

An NSPasteboard wrapper object to allow for substitution of a fake in unit tests.

Definition at line 286 of file FlutterEngine.mm.

Method Documentation

◆ clearContents

- (NSInteger) clearContents

Implemented in FakePasteboard.

Definition at line 190 of file FlutterEngine.mm.

288 {
289 return [[NSPasteboard generalPasteboard] clearContents];
290}

◆ setString:forType: [1/2]

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

Definition at line 190 of file FlutterEngine.mm.

296 :(nonnull NSString*)string forType:(nonnull NSPasteboardType)dataType {
297 return [[NSPasteboard generalPasteboard] setString:string forType:dataType];
298}

◆ setString:forType: [2/2]

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

Implemented in FakePasteboard.

◆ stringForType:

- (NSString *) stringForType: (NSPasteboardType)  dataType

Implemented in FakePasteboard.

Definition at line 190 of file FlutterEngine.mm.

292 :(NSPasteboardType)dataType {
293 return [[NSPasteboard generalPasteboard] stringForType:dataType];
294}

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