Class NavigatorImpl

java.lang.Object
org.loboevolution.js.AbstractScriptableDelegate
org.loboevolution.html.js.NavigatorImpl
All Implemented Interfaces:
Navigator, ScriptableDelegate

public class NavigatorImpl extends AbstractScriptableDelegate implements Navigator

Navigator class.

  • Constructor Details

    • NavigatorImpl

      public NavigatorImpl(WindowImpl window)

      Constructor for Navigator.

      Parameters:
      window - a WindowImpl object.
  • Method Details

    • getGeolocation

      public Geolocation getGeolocation()

      getGeolocation.

      Returns:
      a Geolocation object.
    • isOnLine

      public boolean isOnLine()

      isOnLine.

      Returns:
      a boolean.
    • getLanguage

      public String getLanguage()

      getLanguage.

      Returns:
      a String object.
    • getAppName

      public String getAppName()

      getAppName.

      Returns:
      a String object.
    • getAppVersion

      public String getAppVersion()

      getAppVersion.

      Returns:
      a String object.
    • getPlatform

      public String getPlatform()

      getPlatform.

      Returns:
      a String object.
    • getProduct

      public String getProduct()

      getProduct.

      Returns:
      a String object.
    • getUserAgent

      public String getUserAgent()

      getUserAgent.

      Returns:
      a String object.
    • getMaxTouchPoints

      public int getMaxTouchPoints()

      getMaxTouchPoints.

      Specified by:
      getMaxTouchPoints in interface Navigator
      Returns:
      a Integer object.
    • isMsManipulationViewsEnabled

      public boolean isMsManipulationViewsEnabled()

      isMsManipulationViewsEnabled.

      Specified by:
      isMsManipulationViewsEnabled in interface Navigator
      Returns:
      a boolean.
    • getMsMaxTouchPoints

      public int getMsMaxTouchPoints()

      getMsMaxTouchPoints.

      Specified by:
      getMsMaxTouchPoints in interface Navigator
      Returns:
      a Integer object.
    • isMsPointerEnabled

      public boolean isMsPointerEnabled()

      isMsPointerEnabled.

      Specified by:
      isMsPointerEnabled in interface Navigator
      Returns:
      a boolean.
    • isPointerEnabled

      public boolean isPointerEnabled()

      isPointerEnabled.

      Specified by:
      isPointerEnabled in interface Navigator
      Returns:
      a boolean.
    • vibrate

      public boolean vibrate(int pattern)

      vibrate.

      Specified by:
      vibrate in interface Navigator
      Parameters:
      pattern - a Integer object.
      Returns:
      a boolean.
    • vibrate

      public boolean vibrate(int... pattern)

      vibrate.

      Specified by:
      vibrate in interface Navigator
      Parameters:
      pattern - a Integer object.
      Returns:
      a boolean.
    • toString

      public String toString()
      Overrides:
      toString in class Object