Learn how to evaluate and integrate the VNC SDK
DisplayManager¶
-
public abstract class
DisplayManager¶ Manages the list of displays made available by a Server.
Nested Classes¶
- interface
DisplayManager.Callback
Method Summary¶
| Modifier and Type | Method and Description |
|---|---|
int |
Returns the number of displays. |
String |
Gets the ID of the display (typically a short string). |
String |
Gets the name of the display (typically a human-readable string). |
int |
Gets the horizontal origin of the display in pixels. |
int |
Gets the vertical origin of the display in pixels. |
int |
Gets the horizontal resolution of the display in pixels. |
int |
Gets the vertical resolution of the display in pixels. |
boolean |
Returns whether this is the primary (or main) display. |
void |
Chooses a particular display to remote to connected Viewer app users. |
void |
Registers a callback notifying when displays are added or removed, or the resolution of an existing display changes. |
Methods¶
-
public int
getDisplayCount()¶ Returns the number of displays.
For more information, see
vnc_DisplayManager_getDisplayCount().
-
public String
getId(int index) throws Library.VncException¶ Gets the ID of the display (typically a short string).
For more information, see
vnc_DisplayManager_getId().
-
public String
getName(int index) throws Library.VncException¶ Gets the name of the display (typically a human-readable string).
For more information, see
vnc_DisplayManager_getName().
-
public int
getOriginX(int index)¶ Gets the horizontal origin of the display in pixels.
For more information, see
vnc_DisplayManager_getOriginX().
-
public int
getOriginY(int index)¶ Gets the vertical origin of the display in pixels.
For more information, see
vnc_DisplayManager_getOriginY().
-
public int
getResolutionX(int index)¶ Gets the horizontal resolution of the display in pixels.
For more information, see
vnc_DisplayManager_getResolutionX().
-
public int
getResolutionY(int index)¶ Gets the vertical resolution of the display in pixels.
For more information, see
vnc_DisplayManager_getResolutionY().
-
public boolean
isPrimary(int index)¶ Returns whether this is the primary (or main) display.
For more information, see
vnc_DisplayManager_isPrimary().
-
public void
selectDisplay(int index) throws Library.VncException¶ Chooses a particular display to remote to connected Viewer app users.
For more information, see
vnc_DisplayManager_selectDisplay().
-
public void
setCallback(DisplayManager.Callback callback) throws Library.VncException¶ 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().