org.scalajs.dom

Navigator

class Navigator extends Object with NavigatorID with NavigatorOnLine with NavigatorContentUtils with NavigatorGeolocation with NavigatorStorageUtils

The Navigator interface represents the state and the identity of the user agent. It allows scripts to query it and to register themselves to carry on some activities.

A Navigator object can be retrieved using the read-only Window.navigator property.

MDN

Annotations
@RawJSType()
Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Navigator
  2. NavigatorStorageUtils
  3. NavigatorGeolocation
  4. NavigatorContentUtils
  5. NavigatorOnLine
  6. NavigatorID
  7. Object
  8. Any
  9. AnyRef
  10. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Navigator()

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. def appName: String

    Returns the name of the browser.

    Returns the name of the browser. The HTML5 specification also allows any browser to return "Netscape" here, for compatibility reasons.

    MDN

    Definition Classes
    NavigatorID
  5. def appVersion: String

    Returns the version of the browser as a string.

    Returns the version of the browser as a string. It may be either a plain version number, like "5.0", or a version number followed by more detailed information. The HTML5 specification also allows any browser to return "4.0" here, for compatibility reasons.

    MDN

    Definition Classes
    NavigatorID
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. def geolocation: Geolocation

    The NavigatorGeolocation.

    The NavigatorGeolocation.geolocation read-only property returns a Geolocation object that gives Web content access to the location of the device. This allows a Web site or app offer customized results based on the user's location.

    MDN

    Definition Classes
    NavigatorGeolocation
  12. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  13. def hasOwnProperty(v: String): Boolean

    Definition Classes
    Object
  14. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  16. def isPrototypeOf(v: Object): Boolean

    Definition Classes
    Object
  17. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  20. def onLine: Boolean

    Returns the online status of the browser.

    Returns the online status of the browser. The property returns a boolean value, with true for being online and false for being offline. The property sends updates whenever the browser's ability to connect to the network changes. The update occurs when the user follows links or when a script requests a remote page. For example, the property should return false when users click links soon after they lose internet connection.

    MDN

    Definition Classes
    NavigatorOnLine
  21. def platform: String

    Returns a string representing the platform of the browser.

    Returns a string representing the platform of the browser.

    MDN

    Definition Classes
    NavigatorID
  22. def propertyIsEnumerable(v: String): Boolean

    Definition Classes
    Object
  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  24. def toLocaleString(): String

    Definition Classes
    Object
  25. def toString(): String

    Definition Classes
    AnyRef → Any
  26. def userAgent: String

    Returns the user agent string for the current browser.

    Returns the user agent string for the current browser.

    MDN

    Definition Classes
    NavigatorID
  27. def valueOf(): Any

    Definition Classes
    Object
  28. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def unary_!(): Boolean

    Definition Classes
    Any
    Annotations
    @deprecated
    Deprecated

    (Since version 0.5.0) Considered abuse in typed JavaScript, will be removed in 0.6. Use js.Dynamic or js.prim.Boolean instead.

Inherited from NavigatorStorageUtils

Inherited from NavigatorGeolocation

Inherited from NavigatorContentUtils

Inherited from NavigatorOnLine

Inherited from NavigatorID

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped