Class: xFrameDriver
appLib/SDKDrivers/xFrameDriver.xFrameDriver
This class represents the SDK driver used by external applications. This class extends the EventEmitter and implements the JsSDK interface.
Implements
JsSDK
Hierarchy
-
EventEmitter
↳
xFrameDriver
Implements
-
JsSDK
Table of contents
Properties
- agent
- annotations
- attributes
- contributors
- datasets
- drivers
- executions
- integrations
- items
- labels
- navigator
- ontologies
- projects
- recipes
- settings
- structures
- tasks
Accessors
Methods
Properties
agent
• agent: PeerAgent
The application's agent.
annotations
• annotations: Annotations
The Annotations repository. It is used to access Annotation related CRUD methods.
Implementation of
JsSDK.annotations
attributes
• attributes: Attributes
The Attributes repository. It is used to access Attribute related CRUD methods.
Implementation of
JsSDK.attributes
contributors
• contributors: Contributors
The Contributors repository. It is used to access Contributor related CRUD methods.
Implementation of
JsSDK.contributors
datasets
• datasets: Datasets
The Datasets repository. It is used to access Dataset related CRUD methods.
Implementation of
JsSDK.datasets
drivers
• drivers: Drivers
The Drivers repository. It is used to access Driver related CRUD methods.
Implementation of
JsSDK.drivers
executions
• executions: Executions
The Executions repository. It is used to access Execution related CRUD methods.
Implementation of
JsSDK.executions
integrations
• integrations: Integrations
The Integrations repository. It is used to access Integration related CRUD methods.
Implementation of
JsSDK.integrations
items
• items: Items
The Items repository. It is used to access Item related CRUD methods.
Implementation of
JsSDK.items
labels
• labels: Labels
The Labels repository. It is used to access Label related CRUD methods.
Implementation of
JsSDK.labels
navigator
• navigator: SDKNavigator
The Navigator. It is used to navigate to different routes within the platform.
Implementation of
JsSDK.navigator
ontologies
• ontologies: Ontologies
The Ontologies repository. It is used to access Ontology related CRUD methods.
Implementation of
JsSDK.ontologies
projects
• projects: Projects
The Projects repository. It is used to access Project related CRUD methods.
Implementation of
JsSDK.projects
recipes
• recipes: Recipes
The Recipes repository. It is used to access Recipe related CRUD methods.
Implementation of
JsSDK.recipes
settings
• settings: AppSettings
The Settings repository. It is used to access Settings related CRUD methods.
Implementation of
JsSDK.settings
structures
• structures: Structures
The Structures repository. It is used to access Structure related CRUD methods.
Implementation of
JsSDK.structures
tasks
• tasks: Tasks
The Tasks repository. It is used to access Task related CRUD methods.
Implementation of
JsSDK.tasks
Accessors
logger
• get
logger(): Logger
Returns the logger object.
Returns
Logger
Methods
init
▸ init(): Promise
<void
>
Initializes the xFrame SDK Driver with an agent and all the existing repositories. Initializes agent events.
Returns
Promise
<void
>
- A promise that resolves once the xFrameDriver instance has been initialized.
Implementation of
JsSDK.init
sendEvent
▸ sendEvent(data
): void
Sends an event from the app.
Parameters
Name | Type | Description |
---|---|---|
data |
EventPayload |
The event payload. |
Returns
void
listenerCount
▸ Static
listenerCount(emitter
, event
): number
Deprecated
since v4.0.0
Parameters
Name | Type |
---|---|
emitter |
EventEmitter |
event |
string | symbol |
Returns
number
Inherited from
EventEmitter.listenerCount