Interface HasIOSClipboard

All Superinterfaces:
CanRememberExtensionPresence, ExecutesMethod, HasClipboard
All Known Implementing Classes:
FlutterIOSDriver, IOSDriver

public interface HasIOSClipboard extends HasClipboard
  • Method Details

    • setClipboardImage

      default void setClipboardImage(BufferedImage img) throws IOException
      Set an image to the clipboard.
      Parameters:
      img - the actual image to be set.
      Throws:
      IOException - if the image cannot be decoded in PNG representation
    • getClipboardImage

      default BufferedImage getClipboardImage() throws IOException
      Get an image from the clipboard.
      Returns:
      the actual image instance.
      Throws:
      IOException - If the returned image cannot be decoded or if the clipboard is empty.
    • setClipboardUrl

      default void setClipboardUrl(URL url)
      Set an URL to the clipboard.
      Parameters:
      url - the actual URL to set.
    • getClipboardUrl

      default URL getClipboardUrl() throws MalformedURLException
      Get an URL from the clipboard.
      Returns:
      the actual URL instance.
      Throws:
      MalformedURLException - if the URL in the clipboard is not valid or if the clipboard is empty.