Raxol.Core.Plugins.Core.ClipboardPluginBehaviour behaviour (Raxol v0.5.0)
View SourceDefines the behaviour for clipboard plugin operations.
Summary
Callbacks
Returns the list of commands supported by the clipboard plugin.
Handles a clipboard command with the given arguments and state.
Initializes the clipboard plugin with the given options.
Callbacks
@callback get_commands() :: [atom()]
Returns the list of commands supported by the clipboard plugin.
@callback handle_command(command :: atom(), args :: list(), state :: map()) :: {:ok, String.t()} | {:error, String.t()}
Handles a clipboard command with the given arguments and state.
Initializes the clipboard plugin with the given options.