ViewportManager

ViewportManager

new ViewportManager()

Description:
  • Viewport manager class.
Source:

Methods

doAddDeviceDefinition(name, width, height, os)

Description:
  • Adds new device definition with specified name. An execution rule contains information about the conditions under which it will be executed. You can set a specific screen width and height, as well as the operating system of the device.
Source:
Parameters:
Name Type Description
name
width
height
os

doAddRule(devdefname, rulecallback)

Description:
  • Allows you to associate a device definition with a callback function
Source:
Parameters:
Name Type Description
devdefname
rulecallback

doProcessRules()

Description:
  • Starts condition processing and calls appropriate handlers.
Source: