pasteboard

Pasteboard Access

This module gives access to the pasteboard.

pasteboard.image() → None

Returns the image contained in the pasteboard as an Objective-C UIImage.

pasteboard.images() → List[None]

Returns all images contained in the pasteboard as Objective-C UIImage s.

pasteboard.set_image(image: None)

Copy the given image to the pasteboard.

Parameters:image – The image to copy.
pasteboard.set_images(array: List[None])

Copy the given images to the pasteboard.

Parameters:array – A list of images to copy.
pasteboard.set_string(text: str)

Copy the given text to the pasteboard.

Parameters:text – The text to copy.
pasteboard.set_strings(array: List[str])

Copy the given strings to the pasteboard.

Parameters:array – A list of strings to copy.
pasteboard.set_url(url: None)

Copy the given URL to the pasteboard.

Parameters:url – The Objective-C NSURL to copy.
pasteboard.set_urls(array: List[None])

Copy the given URLs to the pasteboard.

Parameters:array – A list of Objective-C NSURL s to copy.
pasteboard.string() → str

Returns the text contained in the pasteboard.

pasteboard.strings() → List[str]

Returns all strings contained in the pasteboard.

pasteboard.url() → None

Returns the URL contained in the pasteboard as an Objective-C NSURL.

pasteboard.urls() → List[None]

Returns all URLs contained in the pasteboard as Objective-C NSURL s.