Learn how to evaluate and integrate the VNC SDK
DisplayManager¶
-
vncsdk.DisplayManager¶ Manages the list of displays made available by a Server.
Nested Classes¶
Method Summary¶
| Modifier and Type | Method and Description |
|---|---|
Specifies whether screen sharing is enabled. |
|
| number |
Returns the number of displays. |
| number |
Gets the index of the currently selected display. |
| string |
Gets the ID of the display (typically a short string). |
| string |
Gets the name of the display (typically a human-readable string). |
| number |
Gets the horizontal origin of the display in pixels. |
| number |
Gets the vertical origin of the display in pixels. |
| number |
Gets the horizontal resolution of the display in pixels. |
| number |
Gets the vertical resolution of the display in pixels. |
| boolean |
Returns whether the server is sharing its screens, whether it is being called from a server or a viewer. |
| boolean |
Returns whether this is the primary (or main) display. |
| boolean |
Returns whether the selectDisplay() call is permitted. |
Chooses a particular display to remote to connected Viewer app users. |
|
Registers a callback notifying when displays are added or removed, or the resolution of an existing display changes. |
Methods¶
-
DisplayManager.enable(enable)¶ Specifies whether screen sharing is enabled.
For more information, see
vnc_DisplayManager_enable().Arguments: - enable (boolean) –
Throws: vncsdk.VncExceptionon error
-
DisplayManager.getDisplayCount()¶ Returns the number of displays.
For more information, see
vnc_DisplayManager_getDisplayCount().Return type: number
-
DisplayManager.getDisplayIndex()¶ Gets the index of the currently selected display.
For more information, see
vnc_DisplayManager_getDisplayIndex().Return type: number
-
DisplayManager.getId(index)¶ Gets the ID of the display (typically a short string).
For more information, see
vnc_DisplayManager_getId().Arguments: - index (number) –
Throws: vncsdk.VncExceptionon errorReturn type: string
-
DisplayManager.getName(index)¶ Gets the name of the display (typically a human-readable string).
For more information, see
vnc_DisplayManager_getName().Arguments: - index (number) –
Throws: vncsdk.VncExceptionon errorReturn type: string
-
DisplayManager.getOriginX(index)¶ Gets the horizontal origin of the display in pixels.
For more information, see
vnc_DisplayManager_getOriginX().Arguments: - index (number) –
Return type: number
-
DisplayManager.getOriginY(index)¶ Gets the vertical origin of the display in pixels.
For more information, see
vnc_DisplayManager_getOriginY().Arguments: - index (number) –
Return type: number
-
DisplayManager.getResolutionX(index)¶ Gets the horizontal resolution of the display in pixels.
For more information, see
vnc_DisplayManager_getResolutionX().Arguments: - index (number) –
Return type: number
-
DisplayManager.getResolutionY(index)¶ Gets the vertical resolution of the display in pixels.
For more information, see
vnc_DisplayManager_getResolutionY().Arguments: - index (number) –
Return type: number
-
DisplayManager.isEnabled()¶ Returns whether the server is sharing its screens, whether it is being called from a server or a viewer.
For more information, see
vnc_DisplayManager_isEnabled().Return type: boolean
-
DisplayManager.isPrimary(index)¶ Returns whether this is the primary (or main) display.
For more information, see
vnc_DisplayManager_isPrimary().Arguments: - index (number) –
Return type: boolean
-
DisplayManager.isSelectDisplayAllowed()¶ Returns whether the selectDisplay() call is permitted.
For more information, see
vnc_DisplayManager_isSelectDisplayAllowed().Return type: boolean
-
DisplayManager.selectDisplay(index)¶ Chooses a particular display to remote to connected Viewer app users.
For more information, see
vnc_DisplayManager_selectDisplay().Arguments: - index (number) –
Throws: vncsdk.VncExceptionon error
-
DisplayManager.setCallback(callback)¶ Registers a callback notifying when displays are added or removed, or the resolution of an existing display changes.
For more information, see
vnc_DisplayManager_setCallback().Arguments: - callback (
vncsdk.DisplayManager.Callbackor null) –
Throws: vncsdk.VncExceptionon error- callback (