Learn how to evaluate and integrate the VNC SDK

We're here if you need help.

EventLoop

class EventLoop

A container for static methods.

For more information, see vnc_EventLoop in the C API documentation.

Method summary

Modifier and Type Method and Description
void

EventLoop.Run()

Runs the event loop until EventLoop.stop() is called.

void

EventLoop.Stop()

Stops the event loop previously started with EventLoop.run(), causing EventLoop.run() to return promptly.

Boolean

EventLoop.ShouldStop()

Returns a boolean flag indicating whether the event loop should stop, and immediately clears it.

void

EventLoop.RunOnLoop(Action)

Performs an action on the SDK thread, pausing the event loop for the duration of the action.

Methods

void EventLoop.Run ()

Runs the event loop until EventLoop.stop() is called.

For more information, see vnc_EventLoop_run() in the C API documentation.

void EventLoop.Stop ()

Stops the event loop previously started with EventLoop.run(), causing EventLoop.run() to return promptly.

For more information, see vnc_EventLoop_stop() in the C API documentation.

Boolean EventLoop.ShouldStop ()

Returns a boolean flag indicating whether the event loop should stop, and immediately clears it.

For more information, see vnc_EventLoop_shouldStop() in the C API documentation.

void EventLoop.RunOnLoop (Action a)

Performs an action on the SDK thread, pausing the event loop for the duration of the action.

×