Returns the maximum number of simultaneous touch contact points are supported by the current device.
Identifies the platform on which the application is running.
The value used for the User-Agent
request header for
HTTP requests initiated with fetch()
.
"my-app/0.0.1 (Switch; en-us; rv:14.1.2|AMS 1.5.4|E) nx.js/0.0.18"
https://developer.mozilla.org/docs/Web/API/Navigator/userAgent
A VirtualKeyboard instance to show or hide the virtual keyboard programmatically, and get the current position and size of the virtual keyboard.
Returns a promise which is resolved to a BatteryManager instance.
Vibrates the main gamepad for the specified number of milliseconds or pattern.
If a vibration pattern is already in progress when this method is called, the previous pattern is halted and the new one begins instead.
Provides a pattern of vibration and pause intervals. Each value indicates a number of milliseconds to vibrate or pause, in alternation. You may provide either a single value (to vibrate once for that many milliseconds) or an array of values to alternately vibrate, pause, then vibrate again.
// Vibrate for 200ms with the default amplitude/frequency values
navigator.vibrate(200);
// Vibrate 'SOS' in Morse Code
navigator.vibrate([
100, 30, 100, 30, 100, 30, 200, 30, 200, 30, 200, 30, 100, 30, 100, 30, 100,
]);
// Specify amplitude/frequency values for the vibration
navigator.vibrate({
duration: 500,
lowAmp: 0.2
lowFreq: 160,
highAmp: 0.6,
highFreq: 500
});
https://developer.mozilla.org/docs/Web/API/Navigator/vibrate
Generated using TypeDoc
The
Navigator
interface represents the state and the identity of the user agent. It allows scripts to query it and to register themselves to carry on some activities.A
Navigator
instance can be retrieved by accessing the globalnavigator
property.See
https://developer.mozilla.org/docs/Web/API/Navigator