Navigator
Generated.swift:12816class Navigator
class Navigator
import DOM
protocol ConstructibleFromJSValue
Types conforming to this protocol can be constructed from JSValue
.
protocol ConvertibleToJSValue
Objects that can be converted to a JavaScript value, preferably in a lossless manner.
protocol CustomStringConvertible
A type with a customized textual representation.
protocol JSBridgedClass : JSBridgedType
Conform to this protocol when your Swift class wraps a JavaScript class.
protocol JSBridgedType : ConstructibleFromJSValue, ConvertibleToJSValue, CustomStringConvertible
Use this protocol when your type has no single JavaScript class. For example, a union type of multiple classes or primitive values.
protocol NavigatorConcurrentHardware : JSBridgedClass
protocol NavigatorContentUtils : JSBridgedClass
protocol NavigatorCookies : JSBridgedClass
protocol NavigatorID : JSBridgedClass
protocol NavigatorLanguage : JSBridgedClass
protocol NavigatorOnLine : JSBridgedClass
protocol NavigatorPlugins : JSBridgedClass
required init(unsafelyWrapping jsObject: JSObject)
class var constructor: JSFunction? { get }
let jsObject: JSObject
@ReadonlyAttribute var mediaDevices: MediaDevices { get }
@ReadonlyAttribute var permissions: Permissions { get }
@ReadonlyAttribute var serviceWorker: ServiceWorkerContainer { get }
@ReadonlyAttribute var userActivation: UserActivation { get }
func getUserMedia(constraints: MediaStreamConstraints, successCallback: @escaping NavigatorUserMediaSuccessCallback, errorCallback: @escaping NavigatorUserMediaErrorCallback)
init?(from value: JSValue)
init?(from object: JSObject)
static func construct(from value: JSValue) -> Self?
var appCodeName: String { get }
var appName: String { get }
var appVersion: String { get }
var cookieEnabled: Bool { get }
var description: String { get }
var hardwareConcurrency: UInt64 { get }
var jsValue: JSValue { get }
var language: String { get }
var languages: [String] { get }
var mimeTypes: MimeTypeArray { get }
var onLine: Bool { get }
var oscpu: String { get }
var pdfViewerEnabled: Bool { get }
var platform: String { get }
var plugins: PluginArray { get }
var product: String { get }
var productSub: String { get }
var userAgent: String { get }
var vendor: String { get }
var vendorSub: String { get }
func javaEnabled() -> Bool
func registerProtocolHandler(scheme: String, url: String)
func taintEnabled() -> Bool
func unregisterProtocolHandler(scheme: String, url: String)
func jsValue() -> JSValue
import FileSystem
protocol Copyable
A type whose values can be implicitly or explicitly copied.
protocol Escapable
protocol NavigatorStorage : JSBridgedClass
var storage: StorageManager { get }
import Gamepad
func getGamepads() -> [Gamepad?]
import WebGPU
protocol NavigatorGPU : JSBridgedClass
var gpu: GPU { get }