Interface EmulatedEnvironment

All Superinterfaces:
Environment
All Known Implementing Classes:
EmulatedDevice

public interface EmulatedEnvironment extends Environment
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the height of the emulated device screen (in pixels).
    Returns the name of the emulated device.
    double
    Returns the scale factor of the emulated device screen.
    Returns the userAgent property of the emulated device.
    int
    Returns the width of the emulated device screen (in pixels).
    boolean
    Returns true if the emulated device is mobile device.
    boolean
    Returns true if the emulated device screen touch feature is enabled.
    void
    setHeight(int height)
    Sets height of the emulated device screen (in pixels).
    void
    setMobile(boolean mobile)
    Sets the mobile property of the emulated device.
    void
    Sets name of the emulated device.
    void
    setScaleFactor(double scaleFactor)
    Sets the scale factor of the emulated device screen.
    void
    setTouchable(boolean touchable)
    Sets the touchable property of the emulated device screen.
    void
    setUserAgent(String userAgent)
    Sets the userAgent property of the emulated device.
    void
    setWidth(int width)
    Sets width of the emulated device screen (in pixels).
  • Method Details

    • setName

      void setName(String name)
      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

      void setUserAgent(String userAgent)
      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.