rich_clipboard_platform_interface

Pub Version

A common platform interface for the rich_clipboard plugin.

This interface allows platform-specific implementations of the rich_clipboard plugin, as well as the plugin itself, to ensure they are supporting the same interface.

Usage

To implement a new platform-specific implementation of rich_clipboard, extend RichClipboardPlatform2 with an implementation that performs the platform-specific behavior. Within your class, be sure to implement the static function registerWith to register the plugin. See the implementation in rich_clipboard_windows for an example.

If you're platform implementation is entirely in native code that will be called over a platform channel, you can use the default MethodChannelRichClipboard to register the method channel. See the implementation in rich_clipboard_macos for an example.