Navigator

JS
1.1
abstract class Navigator : 
    NavigatorID,
    NavigatorLanguage,
    NavigatorOnLine,
    NavigatorContentUtils,
    NavigatorCookies,
    NavigatorPlugins,
    NavigatorConcurrentHardware

Exposes the JavaScript Navigator to Kotlin

Constructors

JS
1.1

<init>

Exposes the JavaScript Navigator to Kotlin

Navigator()

Properties

JS
1.1

clipboard

open val clipboard: Clipboard
JS
1.1

maxTouchPoints

open val maxTouchPoints: Int
JS
1.1

mediaDevices

open val mediaDevices: MediaDevices
JS
1.1

serviceWorker

open val serviceWorker: ServiceWorkerContainer

Functions

JS
1.1

getUserMedia

fun getUserMedia(
    constraints: MediaStreamConstraints,
    successCallback: (MediaStream) -> Unit,
    errorCallback: (dynamic) -> Unit)
JS
1.1

requestMediaKeySystemAccess

fun requestMediaKeySystemAccess(
    keySystem: String,
    supportedConfigurations: Array<MediaKeySystemConfiguration>
): Promise<MediaKeySystemAccess>
JS
1.1

vibrate

fun vibrate(pattern: dynamic): Boolean