NavigatorBuiltin

@Singleton
@Intrinsic(global = "navigator")
class NavigatorBuiltin : AbstractJsIntrinsic, ReadOnlyProxyObject

Navigator Built-in

Built-in which provides the navigator object in the global JavaScript scope; this object mimics a subset of what is available in browsers.

Standards Compliance

The Navigator userAgent property is defined as part of the WinterTC Minimum Common API.

MDN

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
class Navigator : ProxyInstantiable

Properties

Link copied to clipboard

Indicate whether this symbol is considered runtime-internal.

Functions

Link copied to clipboard
open override fun displayName(): String

Return the display name of this intrinsic; this is typically the Symbol bound to the value.

Link copied to clipboard
open override fun getMember(key: String): Any?
Link copied to clipboard
open override fun getMemberKeys(): Array<String>
Link copied to clipboard
open override fun hasMember(key: String): Boolean
Link copied to clipboard

Install this intrinsic into the provided context bindings for a fresh context; this will only be called once per spawned context.

Link copied to clipboard
open override fun language(): GuestLanguage

Indicate the language which this intrinsic is intended to be used with.

Link copied to clipboard
open override fun putMember(key: String?, value: Value?)
Link copied to clipboard
open override fun removeMember(key: String?): Boolean
Link copied to clipboard
open fun supports(language: GuestLanguage): Boolean

Indicate whether this intrinsic is intended to be used with a given guest language.

Link copied to clipboard
open override fun symbolicName(): String

Return the display name of this intrinsic; this is typically the Symbol bound to the value.