juno.clipboard

Access the iOS system clipboard.

juno.clipboard.get()

Return clipboard text when available.

Returns:

Clipboard text content, or None when no text is present.

Return type:

str | None

juno.clipboard.set(text)

Copy text to the system clipboard.

Parameters:

text (str) – Text content to store in the clipboard.

Raises:

TypeError – If text is not a string.

Return type:

None

juno.clipboard.get_image()

Return clipboard image data encoded as PNG bytes.

Returns:

PNG-encoded image bytes, or None when no image is present.

Return type:

bytes | None

juno.clipboard.set_image(data, *, format='png')

Copy encoded image bytes to the clipboard.

Parameters:
  • data (bytes | bytearray | memoryview) – Raw encoded image payload as a bytes-like object.

  • format (str) – Image encoding. Supported values are "png", "jpeg", and "jpg" (alias for "jpeg").

Raises:
  • TypeError – If data is not bytes-like or format is not a string.

  • ValueError – If format is not a supported image encoding.

Return type:

None