Represents a connection to the OpenFin runtime.
More...
#include <OpenFinAdapter.h>
Represents a connection to the OpenFin runtime.
◆ connectAsync()
future< void > OpenFinAdapterApi::Runtime::connectAsync |
( |
| ) |
|
Initialises and connects to the runtime.
- Returns
- The async future
◆ disconnectAsync()
future< void > OpenFinAdapterApi::Runtime::disconnectAsync |
( |
| ) |
|
Disconnects from the runtime.
- Returns
- The async future
◆ getChannels()
shared_ptr< Channels > OpenFinAdapterApi::Runtime::getChannels |
( |
| ) |
|
◆ getDesktopSystem()
shared_ptr< DesktopSystem > OpenFinAdapterApi::Runtime::getDesktopSystem |
( |
| ) |
|
Gets the Desktop System API object.
- Returns
- The DesktopSystem object
◆ isConnected()
bool OpenFinAdapterApi::Runtime::isConnected |
( |
| ) |
const |
Gets whether the runtime is connected.
- Returns
- Whether the runtime is connected
◆ subscribeDisconnected()
void OpenFinAdapterApi::Runtime::subscribeDisconnected |
( |
const function< void()> & | listener | ) |
|
Registers a listener function that will be called when the adapter disconnects.
- Parameters
-
◆ unsubscribeDisconnected()
void OpenFinAdapterApi::Runtime::unsubscribeDisconnected |
( |
const function< void()> & | listener | ) |
|
Unregisters a listener function such that it will no longer be called when the adapter disconnects.
- Parameters
-
The documentation for this class was generated from the following file: