Class: Screen

Mobizen.Device.Screen

new Mobizen.Device.Screen(socket, params)

Name Type Description
socket Mobizen.Socket

A provider of Mobizen/Socket API.

params object
Version:
  • 1.8.4
Author:

Requires

Classes

GL2D
Key
List
Mask
Touch
View

Members

$debug jQueryObject

active boolean

degree number

disabled boolean

frameQueue array

frameStackSize number

hd boolean

hooked boolean

HWRotate number

ondraw function

paused boolean

scale number

VERSION string

Type Definitions

Properties:
Name Type Description
elementId string

parent element id of remote screen

scale number

default display scale

quality number

transferring screen data quality

pixelRatio number

pixel ratio of remote device display

hookMouse boolean

binding mouse events

hookKeyboard boolean

binding keyboard events

mouseControl boolean

enable mouse event sending

keyboadControl boolean

enable keyboard event sending

controlOnStart boolean

'false' to the device power off on start

loggingEvents boolean

enable event logging

highPixelDensity boolean

support high pixel density display

useBlobURL boolean

enable blob url 'false' to using base64 data uri

useFrameDrop boolean

enable frame dropping

useFrameBuffer boolean

enable double buffering

useHighDefinition boolean

endable high definition of remote device screen

useGL2DRender boolean

enable gl2d renderer

showTouchMask boolean

show touch mask always

showRectLine boolean

display rectangle edge line

A provider of Mobizen/Socket API.

STATS Stats

Methods

bindKeyEvents()

deactivate()

purge(imageQueue)

Name Type Description
imageQueue object

receive(payload, data)

Name Type Description
payload object
data object

sendKey(key, action, event){undefined|number|string}

Name Type Description
key number
action string
event DOMEvent
Returns:
Type Description
undefined | number | string key

sendMouse(x, y, button, action)

Name Type Description
x number
y number
button number
action string
TODO
  • FIXME: 드래그 상황에서 마스크 출력시 멀티 터치 진입
  • real 모드에서 멀티터치 상태에서 손까락 하나만 놓은 경우 싱글터치 자동 진입

sendWheel(delta)

Name Type Description
delta number
TODO
  • 마우스 좌표 휠 이벤트에서 뽑을 수 있다 이 바보야

start(device)

Name Type Description
device object
Fires:

state(device, internal)

Name Type Description
device object
internal boolean optional

unbindKeyEvents()

viewport(force)

Name Type Description
force boolean

inner onendscreen(data)

Name Type Description
data object
Listens to Events:
comments powered by Disqus