@JsType(isNative=true, name="Navigator", namespace="<global>") public class Navigator extends Object implements NavigatorID
Modifier and Type | Class and Description |
---|---|
static class |
Navigator.NavigatorType |
Constructor and Description |
---|
Navigator() |
Modifier and Type | Method and Description |
---|---|
static Navigator |
get() |
String |
getLanguage() |
int |
getMajorVersion() |
Navigator.NavigatorType |
getNavigatorType() |
String |
getPlatform() |
int |
getScrollbarSize() |
String |
getUserAgent() |
String |
getVersion() |
boolean |
isChrome() |
boolean |
isChromium() |
boolean |
isEdge() |
boolean |
isFirefox() |
boolean |
isInternetExplorer() |
boolean |
isIOS() |
boolean |
isIPad() |
boolean |
isIPhone() |
boolean |
isIPod() |
boolean |
isLinux() |
boolean |
isMacintosh() |
boolean |
isMobile() |
boolean |
isOpera() |
boolean |
isSafari() |
boolean |
isSeamonkey() |
boolean |
isStandalone() |
boolean |
isWindows() |
void |
vibrate(int vibration) |
@JsOverlay public static final Navigator get()
@JsProperty(name="userAgent") public String getUserAgent()
getUserAgent
in interface NavigatorID
@JsProperty(name="language") public String getLanguage()
@JsProperty(name="platform") public String getPlatform()
public void vibrate(int vibration)
@JsOverlay public final boolean isInternetExplorer()
@JsOverlay public final boolean isSafari()
@JsOverlay public final boolean isStandalone()
@JsOverlay public final boolean isFirefox()
@JsOverlay public final boolean isSeamonkey()
@JsOverlay public final boolean isChrome()
@JsOverlay public final boolean isChromium()
@JsOverlay public final boolean isEdge()
@JsOverlay public final boolean isOpera()
@JsOverlay public final boolean isIPad()
@JsOverlay public final boolean isIPod()
@JsOverlay public final boolean isIPhone()
@JsOverlay public final boolean isIOS()
@JsOverlay public final boolean isLinux()
@JsOverlay public final boolean isWindows()
@JsOverlay public final boolean isMacintosh()
@JsOverlay public final boolean isMobile()
@JsOverlay public final Navigator.NavigatorType getNavigatorType()
@JsOverlay public final String getVersion()
@JsOverlay public final int getMajorVersion()
@JsOverlay public final int getScrollbarSize()
Copyright © 2018 Xalys. All rights reserved.