@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="Navigator")
public class Navigator
extends JsObject
| Modifier | Constructor and Description |
|---|---|
protected |
Navigator() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
appCodeName()
The value of the NavigatorID.appCodeName property is always "Mozilla", in any browser.
|
java.lang.String |
appName()
The value of the NavigatorID.appName property is always "Netscape", in any browser.
|
java.lang.String |
appVersion()
Returns either "4.0" or a string representing version information about the browser.
|
Bluetooth |
bluetooth() |
Clipboard |
clipboard()
The Clipboard API adds to the Navigator interface the read-only clipboard property, which returns the Clipboard object used to read and write the clipboard's contents.
|
boolean |
cookieEnabled()
navigator.cookieEnabled returns a Boolean value that indicates whether cookies are enabled or not.
|
CredentialsContainer |
credentials()
The credentials property of the Navigator interface returns the CredentialsContainer interface, which exposes methods to request credentials.
|
Geolocation |
geolocation()
The Navigator.geolocation read-only property returns a Geolocation object that gives Web content access to the location of the device.
|
JsArray<Gamepad> |
getGamepads()
The Navigator.getGamepads() method returns an array of Gamepad objects, one for each gamepad connected to the device.
|
int |
hardwareConcurrency()
The navigator.hardwareConcurrency read-only property returns the number of logical processors available to run threads on the user's computer.
|
boolean |
javaEnabled()
This method indicates whether the current browser is Java-enabled or not.
|
java.lang.String |
language()
The NavigatorLanguage.language read-only property returns a string representing the preferred language of the user, usually the language of the browser UI.
|
JsArray<java.lang.String> |
languages()
The NavigatorLanguage.languages read-only property returns an array of DOMStrings representing the user's preferred languages.
|
int |
maxTouchPoints()
The maxTouchPoints read-only property of the Navigator interface returns the maximum number of simultaneous touch contact points are supported by the current device.
|
MediaDevices |
mediaDevices()
The Navigator.mediaDevices read-only property returns a MediaDevices object, which provides access to connected media input devices like cameras and microphones, as well as screen sharing.
|
MimeTypeArray |
mimeTypes()
Returns a MimeTypeArray object, which contains a list of MimeType objects representing the MIME types recognized by the browser.
|
boolean |
onLine()
Returns the online status of the browser.
|
java.lang.String |
oscpu()
The Navigator.oscpu property returns a string that identifies the current operating system.
|
Permissions |
permissions()
The Navigator.permissions read-only property returns a Permissions object that can be used to query and update permission status of APIs covered by the Permissions API.
|
java.lang.String |
platform()
Returns a string representing the platform of the browser.
|
PluginArray |
plugins()
Returns a PluginArray object, listing the Plugin objects describing the plugins installed in the application.
|
java.lang.String |
product()
The value of the NavigatorID.product property is always "Gecko", in any browser.
|
java.lang.String |
productSub()
The Navigator.productSub read-only property returns the build number of the current browser.
|
void |
registerProtocolHandler(java.lang.String scheme,
java.lang.String url)
The Navigator method registerProtocolHandler() lets web sites register their ability to open or handle particular URL schemes (aka protocols).
|
Promise<MediaKeySystemAccess> |
requestMediaKeySystemAccess(java.lang.String keySystem,
JsArray<MediaKeySystemConfiguration> supportedConfigurations)
The Navigator.requestMediaKeySystemAccess() method 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.
|
Promise<MediaKeySystemAccess> |
requestMediaKeySystemAccess(java.lang.String keySystem,
MediaKeySystemConfiguration[] supportedConfigurations)
The Navigator.requestMediaKeySystemAccess() method 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.
|
boolean |
sendBeacon(java.lang.String url)
The navigator.sendBeacon() method asynchronously sends a small amount of data over HTTP to a web server.
|
boolean |
sendBeacon(java.lang.String url,
Blob data)
The navigator.sendBeacon() method asynchronously sends a small amount of data over HTTP to a web server.
|
boolean |
sendBeacon(java.lang.String url,
BodyInit data)
The navigator.sendBeacon() method asynchronously sends a small amount of data over HTTP to a web server.
|
boolean |
sendBeacon(java.lang.String url,
BufferSource data)
The navigator.sendBeacon() method asynchronously sends a small amount of data over HTTP to a web server.
|
boolean |
sendBeacon(java.lang.String url,
FormData data)
The navigator.sendBeacon() method asynchronously sends a small amount of data over HTTP to a web server.
|
boolean |
sendBeacon(java.lang.String url,
ReadableStream data)
The navigator.sendBeacon() method asynchronously sends a small amount of data over HTTP to a web server.
|
boolean |
sendBeacon(java.lang.String url,
java.lang.String data)
The navigator.sendBeacon() method asynchronously sends a small amount of data over HTTP to a web server.
|
boolean |
sendBeacon(java.lang.String url,
URLSearchParams data)
The navigator.sendBeacon() method asynchronously sends a small amount of data over HTTP to a web server.
|
boolean |
sendBeacon(java.lang.String url,
XMLHttpRequestBodyInit data)
The navigator.sendBeacon() method asynchronously sends a small amount of data over HTTP to a web server.
|
ServiceWorkerContainer |
serviceWorker()
The Navigator.serviceWorker read-only property returns the ServiceWorkerContainer object for the associated document, which provides access to registration, removal, upgrade, and communication with the ServiceWorker.
|
Promise<java.lang.Void> |
share()
The navigator.share() method of the Web Share API invokes the native sharing mechanism of the device.
|
Promise<java.lang.Void> |
share(ShareData data)
The navigator.share() method of the Web Share API invokes the native sharing mechanism of the device.
|
StorageManager |
storage()
The NavigatorStorage.storage read-only property returns the singleton StorageManager object used to access the overall storage capabilities of the browser for the current site or app.
|
boolean |
taintEnabled()
The NavigatorID.taintEnabled() method always returns false.
|
void |
unregisterProtocolHandler(java.lang.String scheme,
java.lang.String url) |
java.lang.String |
userAgent()
The NavigatorID.userAgent read-only property returns the user agent string for the current browser.
|
java.lang.String |
vendor()
The value of the Navigator vendor property is always either "Google Inc.", "Apple Computer, Inc.", or (in Firefox) the empty string.
|
java.lang.String |
vendorSub()
The value of the Navigator.vendorSub property is always the empty string, in any browser.
|
boolean |
vibrate(double[] pattern)
The Navigator.vibrate() method pulses the vibration hardware on the device, if such hardware exists.
|
boolean |
vibrate(int pattern)
The Navigator.vibrate() method pulses the vibration hardware on the device, if such hardware exists.
|
boolean |
vibrate(JsArray<java.lang.Double> pattern)
The Navigator.vibrate() method pulses the vibration hardware on the device, if such hardware exists.
|
boolean |
vibrate(VibratePattern pattern)
The Navigator.vibrate() method pulses the vibration hardware on the device, if such hardware exists.
|
WakeLock |
wakeLock()
The wakeLock read-only property returns a WakeLock interface which allows a document to acquire a screen wake lock.
|
boolean |
webdriver()
The webdriver read-only property of the navigator interface indicates whether the user agent is controlled by automation.
|
XRSystem |
xr()
The read-only xr property provided by the Navigator or WorkerNavigator interface returns an XRSystem object which can be used to access the WebXR Device API.
|
assign, create, create, defineProperties, defineProperty, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyDescriptor, getOwnPropertyDescriptors, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, is, isExtensible, isFrozen, isSealed, keys, preventExtensions, seal, setPrototypeOf, valueOf_, values@JsProperty(name="appCodeName") @Nonnull public java.lang.String appCodeName()
@JsProperty(name="appName") @Nonnull public java.lang.String appName()
@JsProperty(name="appVersion") @Nonnull public java.lang.String appVersion()
@JsProperty(name="bluetooth") @Nonnull public Bluetooth bluetooth()
@JsProperty(name="clipboard") @Nonnull public Clipboard clipboard()
@JsProperty(name="cookieEnabled") public boolean cookieEnabled()
@JsProperty(name="credentials") @Nonnull public CredentialsContainer credentials()
@JsProperty(name="geolocation") @Nonnull public Geolocation geolocation()
@JsProperty(name="hardwareConcurrency") public int hardwareConcurrency()
@JsProperty(name="language") @Nonnull public java.lang.String language()
@JsProperty(name="languages") @Nonnull public JsArray<java.lang.String> languages()
@JsProperty(name="maxTouchPoints") public int maxTouchPoints()
@JsProperty(name="mediaDevices") @Nonnull public MediaDevices mediaDevices()
@JsProperty(name="mimeTypes") @Nonnull public MimeTypeArray mimeTypes()
@JsProperty(name="onLine") public boolean onLine()
@JsProperty(name="oscpu") @Nonnull public java.lang.String oscpu()
@JsProperty(name="permissions") @Nonnull public Permissions permissions()
@JsProperty(name="platform") @Nonnull public java.lang.String platform()
@JsProperty(name="plugins") @Nonnull public PluginArray plugins()
@JsProperty(name="product") @Nonnull public java.lang.String product()
@JsProperty(name="productSub") @Nonnull public java.lang.String productSub()
@JsProperty(name="serviceWorker") @Nonnull public ServiceWorkerContainer serviceWorker()
@JsProperty(name="storage") @Nonnull public StorageManager storage()
@JsProperty(name="userAgent") @Nonnull public java.lang.String userAgent()
@JsProperty(name="vendor") @Nonnull public java.lang.String vendor()
@JsProperty(name="vendorSub") @Nonnull public java.lang.String vendorSub()
@JsProperty(name="wakeLock") @Nonnull public WakeLock wakeLock()
@JsProperty(name="webdriver") public boolean webdriver()
@JsProperty(name="xr") @Nonnull public XRSystem xr()
public boolean sendBeacon(@Nonnull
java.lang.String url,
@Nullable
BodyInit data)
public boolean sendBeacon(@Nonnull
java.lang.String url,
@Nonnull
ReadableStream data)
public boolean sendBeacon(@Nonnull
java.lang.String url,
@Nonnull
XMLHttpRequestBodyInit data)
public boolean sendBeacon(@Nonnull
java.lang.String url,
@Nonnull
Blob data)
public boolean sendBeacon(@Nonnull
java.lang.String url,
@Nonnull
BufferSource data)
public boolean sendBeacon(@Nonnull
java.lang.String url,
@Nonnull
FormData data)
public boolean sendBeacon(@Nonnull
java.lang.String url,
@Nonnull
URLSearchParams data)
public boolean sendBeacon(@Nonnull
java.lang.String url,
@Nonnull
java.lang.String data)
public boolean sendBeacon(@Nonnull
java.lang.String url)
@Nonnull public Promise<MediaKeySystemAccess> requestMediaKeySystemAccess(@Nonnull java.lang.String keySystem, @Nonnull JsArray<MediaKeySystemConfiguration> supportedConfigurations)
@Nonnull public Promise<MediaKeySystemAccess> requestMediaKeySystemAccess(@Nonnull java.lang.String keySystem, @Nonnull MediaKeySystemConfiguration[] supportedConfigurations)
@Nonnull public JsArray<Gamepad> getGamepads()
public boolean vibrate(@Nonnull
VibratePattern pattern)
public boolean vibrate(int pattern)
public boolean vibrate(@Nonnull
JsArray<java.lang.Double> pattern)
public boolean vibrate(@Nonnull
double[] pattern)
@Nonnull public Promise<java.lang.Void> share(@Nonnull ShareData data)
@Nonnull public Promise<java.lang.Void> share()
public void registerProtocolHandler(@Nonnull
java.lang.String scheme,
@Nonnull
java.lang.String url)
public void unregisterProtocolHandler(@Nonnull
java.lang.String scheme,
@Nonnull
java.lang.String url)
public boolean taintEnabled()
public boolean javaEnabled()