Package-level declarations

Types

Link copied to clipboard

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.

Link copied to clipboard
Link copied to clipboard
interface NavigatorBadge

Available only in secure contexts.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
interface NavigatorOnLine
Link copied to clipboard
Link copied to clipboard

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

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. This method is part of the Web MIDI API, which provides a means for accessing, enumerating, and manipulating MIDI devices. 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. The available share targets depend on the device, but might include the clipboard, contacts and email applications, websites, Bluetooth, etc. Available only in secure contexts.