Package io.appium.java_client.ios
Interface HasIOSClipboard
-
- All Superinterfaces:
CanRememberExtensionPresence
,ExecutesMethod
,HasClipboard
- All Known Implementing Classes:
FlutterIOSDriver
,IOSDriver
public interface HasIOSClipboard extends HasClipboard
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default java.awt.image.BufferedImage
getClipboardImage()
Get an image from the clipboard.default java.net.URL
getClipboardUrl()
Get an URL from the clipboard.default void
setClipboardImage(java.awt.image.BufferedImage img)
Set an image to the clipboard.default void
setClipboardUrl(java.net.URL url)
Set an URL to the clipboard.-
Methods inherited from interface io.appium.java_client.CanRememberExtensionPresence
assertExtensionExists, markExtensionAbsence
-
Methods inherited from interface io.appium.java_client.ExecutesMethod
execute, execute
-
Methods inherited from interface io.appium.java_client.clipboard.HasClipboard
getClipboard, getClipboardText, setClipboard, setClipboardText
-
-
-
-
Method Detail
-
setClipboardImage
default void setClipboardImage(java.awt.image.BufferedImage img) throws java.io.IOException
Set an image to the clipboard.- Parameters:
img
- the actual image to be set.- Throws:
java.io.IOException
- if the image cannot be decoded in PNG representation
-
getClipboardImage
default java.awt.image.BufferedImage getClipboardImage() throws java.io.IOException
Get an image from the clipboard.- Returns:
- the actual image instance.
- Throws:
java.io.IOException
- If the returned image cannot be decoded or if the clipboard is empty.
-
setClipboardUrl
default void setClipboardUrl(java.net.URL url)
Set an URL to the clipboard.- Parameters:
url
- the actual URL to set.
-
getClipboardUrl
default java.net.URL getClipboardUrl() throws java.net.MalformedURLException
Get an URL from the clipboard.- Returns:
- the actual URL instance.
- Throws:
java.net.MalformedURLException
- if the URL in the clipboard is not valid or if the clipboard is empty.
-
-