static, readonlylinux :Boolean

static, readonlylocalStorage :Boolean

Browser Local Storage capabilities
(this flag will be set to false if cookies are blocked)

static, readonlymaxTouchPoints :Number

Return the maximum number of simultaneous touch contact points are supported by the current device.

Example

if (me.device.maxTouchPoints > 1) {
// device supports multi-touch
}

static, readonlynativeBase64 :Boolean

Browser Base64 decoding capability

static, readonlysound :Boolean

Returns true if the browser/device has audio capabilities.

static, readonlytouch :Boolean

Touch capabilities

static, readonlyua :String

the ua read-only property returns the user agent string for the current browser.

static, readonlywheel :Boolean

W3C standard wheel events

static, readonlywp :Boolean

equals to true if the device is a Windows Phone platform.

Methods

staticenableSwipe(enableopt)

enable/disable swipe on WebView.

Parameters:

Name

Type

Attributes

Default

Description

enable

boolean

<optional>

true

enable or disable swipe.

staticexitFullscreen()

Exit fullscreen mode. Requires fullscreen support from the browser/device.

staticfocus()

Makes a request to bring this device window to the front.

Example

if (clicked) {
me.device.focus();
}

staticgetMaxShaderPrecision(gl) → {Boolean}

return the highest precision format supported by this device for GL Shaders

Parameters:

Name

Type

Description

gl

WebGLRenderingContext

Returns:

Boolean
-

"lowp", "mediump", or "highp"

staticgetScreenOrientation() → {String}

Return a string representing the orientation of the device screen.
It can be "any", "natural", "landscape", "portrait", "portrait-primary", "portrait-secondary", "landscape-primary", "landscape-secondary"

staticturnOffPointerLock()

Exits pointer lock. Works on supported devices & browsers

staticturnOnPointerLock()

Enters pointer lock, requesting it from the user first. Works on supported devices & browsers
Must be called in a click event or an event that requires user interaction.
If you need to run handle events for errors or change of the pointer lock, see below.

Returns:

staticunwatchAccelerometer()

unwatch Accelerometor event

staticunwatchDeviceOrientation()

unwatch Device orientation event

staticvibrate(pattern)

the vibrate method pulses the vibration hardware on the device,
If the device doesn't support vibration, this method has no effect.
If a vibration pattern is already in progress when this method is called,
the previous pattern is halted and the new one begins instead.