Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
sealed interface NavigatorBadge

Available only in secure contexts.

Link copied to clipboard
Link copied to clipboard
sealed interface NavigatorContentUtils
Link copied to clipboard
sealed interface NavigatorCookies
Link copied to clipboard
sealed interface NavigatorID
Link copied to clipboard
sealed interface NavigatorLanguage
Link copied to clipboard
sealed interface NavigatorLocks

Available only in secure contexts.

Link copied to clipboard
sealed interface NavigatorOnLine
Link copied to clipboard
sealed interface NavigatorPlugins
Link copied to clipboard
sealed interface NavigatorStorage

Available only in secure contexts.

Properties

Link copied to clipboard
external val navigator: Navigator

The Window.navigator read-only property returns a reference to the Navigator object, which has methods and properties about the application running the script.

Functions

Link copied to clipboard
Link copied to clipboard
inline suspend fun Navigator.requestMediaKeySystemAccess(    keySystem: String,     supportedConfigurations: ReadonlyArray<MediaKeySystemConfiguration>): MediaKeySystemAccess

The requestMediaKeySystemAccess() method of the Navigator interface returns a Promise which delivers a MediaKeySystemAccess object that can be used to access a particular media key system, which can in turn be used to create keys for decrypting a media stream. Available only in secure contexts.

Link copied to clipboard
inline suspend fun Navigator.requestMIDIAccess(): MIDIAccess
inline suspend fun Navigator.requestMIDIAccess(options: MIDIOptions): MIDIAccess

The requestMIDIAccess() method of the Navigator interface returns a Promise representing a request for access to MIDI devices on a user's system. Available only in secure contexts.

Link copied to clipboard
inline suspend fun NavigatorBadge.setAppBadge()
inline suspend fun NavigatorBadge.setAppBadge(contents: UInt53)
Link copied to clipboard
inline suspend fun Navigator.share()
inline suspend fun Navigator.share(data: ShareData)

The share() method of the Navigator interface invokes the native sharing mechanism of the device to share data such as text, URLs, or files. Available only in secure contexts.