com.hp.lft.sdk.web

Interface EmulatedEnvironment

    • Method Summary

      Modifier and TypeMethod and Description
      intgetHeight()
      Returns the height of the emulated device screen (in pixels).
      java.lang.StringgetName()
      Returns the name of the emulated device.
      doublegetScaleFactor()
      Returns the scale factor of the emulated device screen.
      java.lang.StringgetUserAgent()
      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.
      booleanisTouchable()
      Returns 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.
      voidsetName(java.lang.String name)
      Sets 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(java.lang.String userAgent)
      Sets the userAgent property of the emulated device.
      voidsetWidth(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.