| Flutter macOS Embedder |

Instance Methods | List of all members
FlutterPasteboard Class Reference

`#import <FlutterEngine_Internal.h>`

Inheritance diagram for FlutterPasteboard:

## Instance Methods
(NSInteger) | - clearContents
(NSString *) | - stringForType:
(BOOL) | - setString:forType:

## Detailed Description

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

Definition at line 290 of file FlutterEngine.mm.

## Method Documentation

## ◆ clearContents

- (NSInteger) clearContents |  |  |

Definition at line 194 of file FlutterEngine.mm.

292 {
293 return [[NSPasteboard generalPasteboard] clearContents];
294 }

## ◆ setString:forType:

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

Referenced by flutter::testing::CreateMockFlutterEngine().

## ◆ stringForType:

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

Definition at line 194 of file FlutterEngine.mm.

296 :(NSPasteboardType)dataType {
297 return [[NSPasteboard generalPasteboard] stringForType:dataType];
298 }

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

- shell/platform/darwin/macos/framework/Source/FlutterEngine.mm
- shell/platform/darwin/macos/framework/Source/FlutterEngine_Internal.h