com.hp.lft.sdk.web

Interface EmulatedEnvironment

    • Method Summary

      Modifier and Type Method and Description
      int getHeight()
      Returns the height of the emulated device screen (in pixels).
      java.lang.String getName()
      Returns the name of the emulated device.
      double getScaleFactor()
      Returns the scale factor of the emulated device screen.
      java.lang.String getUserAgent()
      Returns the userAgent property of the emulated device.
      int getWidth()
      Returns the width of the emulated device screen (in pixels).
      boolean isMobile()
      Returns true if the emulated device is mobile device.
      boolean isTouchable()
      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 setName(java.lang.String name)
      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(java.lang.String userAgent)
      Sets the userAgent property of the emulated device.
      void setWidth(int width)
      Sets width of the emulated device screen (in pixels).
    • Method Detail

      • setName

        void setName(java.lang.String name)
        Sets name of the emulated device.
        Parameters:
        name - the device name.
      • getName

        java.lang.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(java.lang.String userAgent)
        Sets the userAgent property of the emulated device.
        Parameters:
        userAgent - the userAgent property of the emulated device.
      • getUserAgent

        java.lang.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.