Package-level declarations

Types

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. 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.