Raxol.Core.Plugins.Core.ClipboardPlugin (Raxol v2.0.1)

View Source

Provides clipboard read/write commands and delegates to a configured system clipboard implementation.

Summary

Functions

Disables the clipboard plugin.

Enables the clipboard plugin.

Filters events for the clipboard plugin.

Handles clipboard read command (arity 1 - just state).

Handles clipboard commands with a simplified interface.

Functions

disable(state)

@spec disable(map()) :: {:ok, map()}

Disables the clipboard plugin.

enable(state)

@spec enable(map()) :: {:ok, map()}

Enables the clipboard plugin.

filter_event(event, state)

@spec filter_event(any(), map()) :: {:ok, any(), map()}

Filters events for the clipboard plugin.

handle_clipboard_command(state)

@spec handle_clipboard_command(map()) :: {:ok, any()} | {:error, any()}

Handles clipboard read command (arity 1 - just state).

handle_clipboard_command(arg1, state)

@spec handle_clipboard_command(list(), map()) :: {:ok, any()} | {:error, any()}

Handles clipboard commands with a simplified interface.

terminate(reason, state)