Raxol.Clipboard (Raxol v0.3.0)

View Source

Handles clipboard operations across different platforms. Provides a unified interface for copy/paste functionality.

Summary

Functions

Gets text from the system clipboard. Returns {:ok, text} on success, {:error, reason} on failure.

Sets text to the system clipboard. Returns :ok on success, {:error, reason} on failure.

Functions

get_text()

@spec get_text() :: {:ok, String.t()} | {:error, term()}

Gets text from the system clipboard. Returns {:ok, text} on success, {:error, reason} on failure.

set_text(text)

@spec set_text(String.t()) :: :ok | {:error, term()}

Sets text to the system clipboard. Returns :ok on success, {:error, reason} on failure.