Learn how to evaluate and integrate the VNC SDK
The vncsdk module¶
Method Summary¶
Modifier and Type | Method and Description |
---|---|
Initializes the SDK. |
|
Enable an SDK add-on by passing in the content of the add-on code, obtained from RealVNC. |
|
number |
Returns the runtime build number of the SDK. |
number |
Returns the runtime major version number of the SDK. |
number |
Returns the runtime minor version number of the SDK. |
number |
Returns the runtime patch version number of the SDK. |
number |
Converts a keysym to a unicode - suitable for converting a keysym received on the server in |
Shuts down the SDK, ensuring that any resources are cleared up. |
|
number |
Converts a unicode character to a keysym, suitable for passing to |
Static methods¶
-
vncsdk.
init
()¶ Initializes the SDK. Only call functions in
DataStore
orLogger
before you call this function.Throws: vncsdk.VncException
on error
-
vncsdk.
enableAddOn
(addOnCode)¶ Enable an SDK add-on by passing in the content of the add-on code, obtained from RealVNC.
For more information, see
vnc_enableAddOn()
.Arguments: - addOnCode (string) –
Throws: vncsdk.VncException
on error
-
vncsdk.
getBuildNumber
()¶ Returns the runtime build number of the SDK.
For more information, see
vnc_getBuildNumber()
.Return type: number
-
vncsdk.
getMajorVersion
()¶ Returns the runtime major version number of the SDK.
For more information, see
vnc_getMajorVersion()
.Return type: number
-
vncsdk.
getMinorVersion
()¶ Returns the runtime minor version number of the SDK.
For more information, see
vnc_getMinorVersion()
.Return type: number
-
vncsdk.
getPatchVersion
()¶ Returns the runtime patch version number of the SDK.
For more information, see
vnc_getPatchVersion()
.Return type: number
-
vncsdk.
keysymToUnicode
(keysym)¶ Converts a keysym to a unicode - suitable for converting a keysym received on the server in
Server.InputEventsCallback.keyEventCallback()
.For more information, see
vnc_keysymToUnicode()
.Arguments: - keysym (number) –
Return type: number
-
vncsdk.
shutdown
()¶ Shuts down the SDK, ensuring that any resources are cleared up.
For more information, see
vnc_shutdown()
.Throws: vncsdk.VncException
on error
-
vncsdk.
unicodeToKeysym
(unicodeChar)¶ Converts a unicode character to a keysym, suitable for passing to
vncsdk.Viewer.sendKeyDown()
.For more information, see
vnc_unicodeToKeysym()
.Arguments: - unicodeChar (number) –
Return type: number