Package com.hp.lft.sdk.web
Interface EmulatedEnvironment
- All Superinterfaces:
Environment
- All Known Implementing Classes:
EmulatedDevice
-
Method Summary
Modifier and TypeMethodDescriptionintReturns the height of the emulated device screen (in pixels).getName()Returns the name of the emulated device.doubleReturns the scale factor of the emulated device screen.Returns the userAgent property of the emulated device.intgetWidth()Returns the width of the emulated device screen (in pixels).booleanisMobile()Returns true if the emulated device is mobile device.booleanReturns true if the emulated device screen touch feature is enabled.voidsetHeight(int height) Sets height of the emulated device screen (in pixels).voidsetMobile(boolean mobile) Sets the mobile property of the emulated device.voidSets name of the emulated device.voidsetScaleFactor(double scaleFactor) Sets the scale factor of the emulated device screen.voidsetTouchable(boolean touchable) Sets the touchable property of the emulated device screen.voidsetUserAgent(String userAgent) Sets the userAgent property of the emulated device.voidsetWidth(int width) Sets width of the emulated device screen (in pixels).
-
Method Details
-
setName
Sets name of the emulated device.- Parameters:
name- the device name.
-
getName
String getName()Returns the name of the emulated device.- Returns:
- name of the emulated device.
-
setWidth
void setWidth(int width) Sets width of the emulated device screen (in pixels).- Parameters:
width- the width of the emulated device screen (in pixels).
-
getWidth
int getWidth()Returns the width of the emulated device screen (in pixels).- Returns:
- the width of the emulated device screen (in pixels).
-
setHeight
void setHeight(int height) Sets height of the emulated device screen (in pixels).- Parameters:
height- the height of the emulated device screen (in pixels).
-
getHeight
int getHeight()Returns the height of the emulated device screen (in pixels).- Returns:
- the height of the emulated device screen (in pixels).
-
setScaleFactor
void setScaleFactor(double scaleFactor) Sets the scale factor of the emulated device screen.- Parameters:
scaleFactor- the scale factor of the emulated device screen.
-
getScaleFactor
double getScaleFactor()Returns the scale factor of the emulated device screen.- Returns:
- the scale factor of the emulated device screen.
-
setTouchable
void setTouchable(boolean touchable) Sets the touchable property of the emulated device screen.- Parameters:
touchable- the touchable property of the emulated device screen.
-
isTouchable
boolean isTouchable()Returns true if the emulated device screen touch feature is enabled.- Returns:
- true if the emulated device screen touch feature is enabled.
-
setUserAgent
Sets the userAgent property of the emulated device.- Parameters:
userAgent- the userAgent property of the emulated device.
-
getUserAgent
String getUserAgent()Returns the userAgent property of the emulated device.- Returns:
- the userAgent property of the emulated device.
-
setMobile
void setMobile(boolean mobile) Sets the mobile property of the emulated device.- Parameters:
mobile- the mobile property of the emulated device.
-
isMobile
boolean isMobile()Returns true if the emulated device is mobile device.- Returns:
- true if the emulated device is mobile device.
-