juno.clipboard¶
Access the iOS system clipboard.
- juno.clipboard.get()¶
Return clipboard text when available.
- Returns:
Clipboard text content, or
Nonewhen no text is present.- Return type:
str | None
- juno.clipboard.set(text)¶
Copy text to the system clipboard.
- juno.clipboard.get_image()¶
Return clipboard image data encoded as PNG bytes.
- Returns:
PNG-encoded image bytes, or
Nonewhen 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
datais not bytes-like orformatis not a string.ValueError – If
formatis not a supported image encoding.
- Return type:
None