Raxol.Core.Clipboard.Behaviour behaviour (Raxol v0.5.0)

View Source

Behaviour for clipboard operations.

Summary

Callbacks

Copies text to the clipboard.

Pastes text from the clipboard.

Callbacks

copy(content)

@callback copy(content :: String.t()) :: :ok | {:error, any()}

Copies text to the clipboard.

paste()

@callback paste() :: {:ok, String.t()} | {:error, any()}

Pastes text from the clipboard.