Provides run-time access to AdapTable's FDC3 functionality

TypeScript
export interface

Methods

MethodDescription
broadcastFromPrimaryKey(primaryKeyValue, contextType, channel)Broadcasts the given Context from the given Row Node with the given Primary Key Value
broadcastFromRow(rowNode, contextType, channel)Broadcasts the given Context from the given Row Node
buildContextDataForPrimaryKey(contextType, primaryKeyValue)Builds FDC3 Context Data based on the given Context Type and the Row Node with the given Primary Key Value
buildContextDataFromRow(contextType, rowNode)Builds FDC3 Context Data based on the given Context Type and Row Node
getContextLabel(contextType)Returns the human-friendly label for the given Context Type
getDesktopAgent()Returns the FDC3 Desktop Agent
isStandardContextType(contextType)Checks if the given Context Type is a FDC3 standard Context Type
isStandardIntentType(intentType)Checks if the given Intent is a FDC3 standard Intent Type
raiseIntentForContextFromPrimaryKey(primaryKeyValue, contextType, appIdentifier)Finds and raises an Intent based on the given Context from the given Row Node with the given Primary Key Value
raiseIntentForContextFromRow(rowNode, contextType, appIdentifier)Finds and raises an Intent based on the given Context from the given Row Node
raiseIntentFromPrimaryKey(primaryKeyValue, intent, contextType, appIdentifier)Raises an Intent with the given Context from the given Row Node with the given Primary Key Value
raiseIntentFromRow(rowNode, intent, contextType, appIdentifier)Raises an Intent with the given Context from the given Row Node

Method Details

broadcastFromPrimaryKey

Broadcasts the given Context from the given Row Node with the given Primary Key Value

TypeScript
broadcastFromPrimaryKey(primaryKeyValue: string | number, contextType: ContextType, channel?: Channel): Promise<void> | undefined;
Parameters
ParameterTypeDescription
primaryKeyValuestring | numberThe Primary Key Value
contextTypeContextTypeThe FDC3 Context Type
channelChannel(optional) Channel to broadcast to; if not provided, the Context will be broadcast to whatever User Channel the app is joined to
Returns

Promise<void> | undefined

broadcastFromRow

Broadcasts the given Context from the given Row Node

TypeScript
broadcastFromRow(rowNode: IRowNode, contextType: ContextType, channel?: Channel): Promise<void>;
Parameters
ParameterTypeDescription
rowNodeIRowNodeThe Row Node
contextTypeContextTypeThe FDC3 Context Type
channelChannel(optional) Channel to broadcast to; if not provided, the Context will be broadcast to whatever User Channel the app is joined to
Returns

Promise<void>

buildContextDataForPrimaryKey

Builds FDC3 Context Data based on the given Context Type and the Row Node with the given Primary Key Value

TypeScript
buildContextDataForPrimaryKey(contextType: ContextType, primaryKeyValue: string | number): Context | undefined;
Parameters
ParameterTypeDescription
contextTypeContextTypeThe FDC3 Context Type
primaryKeyValuestring | numberThe Primary Key Value
Returns

Context | undefined

buildContextDataFromRow

Builds FDC3 Context Data based on the given Context Type and Row Node

TypeScript
buildContextDataFromRow(contextType: ContextType, rowNode: IRowNode): Context;
Parameters
ParameterTypeDescription
contextTypeContextTypeThe FDC3 Context Type
rowNodeIRowNodeThe Row Node
Returns

Context

getContextLabel

Returns the human-friendly label for the given Context Type

TypeScript
getContextLabel(contextType: ContextType): string;
Parameters
ParameterTypeDescription
contextTypeContextTypeThe FDC3 Context Type
Returns

string

getDesktopAgent

Returns the FDC3 Desktop Agent

TypeScript
getDesktopAgent(): DesktopAgent;
Returns

DesktopAgent

isStandardContextType

Checks if the given Context Type is a FDC3 standard Context Type

TypeScript
isStandardContextType(contextType: string): boolean;
Parameters
ParameterType
contextTypestring
Returns

boolean

isStandardIntentType

Checks if the given Intent is a FDC3 standard Intent Type

TypeScript
isStandardIntentType(intentType: string): boolean;
Parameters
ParameterType
intentTypestring
Returns

boolean

raiseIntentForContextFromPrimaryKey

Finds and raises an Intent based on the given Context from the given Row Node with the given Primary Key Value

TypeScript
raiseIntentForContextFromPrimaryKey(primaryKeyValue: string | number, contextType: ContextType, appIdentifier?: AppIdentifier): Promise<IntentResolution> | undefined;
Parameters
ParameterTypeDescription
primaryKeyValuestring | numberThe Primary Key Value
contextTypeContextTypeThe FDC3 Context Type
appIdentifierAppIdentifierThe App Identifier
Returns

Promise<IntentResolution> | undefined

raiseIntentForContextFromRow

Finds and raises an Intent based on the given Context from the given Row Node

TypeScript
raiseIntentForContextFromRow(rowNode: IRowNode, contextType: ContextType, appIdentifier?: AppIdentifier): Promise<IntentResolution>;
Parameters
ParameterTypeDescription
rowNodeIRowNodeThe Row Node
contextTypeContextTypeThe FDC3 Context Type
appIdentifierAppIdentifierThe App Identifier
Returns

Promise<IntentResolution>

raiseIntentFromPrimaryKey

Raises an Intent with the given Context from the given Row Node with the given Primary Key Value

TypeScript
raiseIntentFromPrimaryKey(primaryKeyValue: string | number, intent: Intent, contextType: ContextType, appIdentifier?: AppIdentifier): Promise<IntentResolution> | undefined;
Parameters
ParameterTypeDescription
primaryKeyValuestring | numberThe Primary Key Value
intentIntentThe FDC3 Intent
contextTypeContextTypeThe FDC3 Context Type
appIdentifierAppIdentifierThe App Identifier
Returns

Promise<IntentResolution> | undefined

raiseIntentFromRow

Raises an Intent with the given Context from the given Row Node

TypeScript
raiseIntentFromRow(rowNode: IRowNode, intent: Intent, contextType: ContextType, appIdentifier?: AppIdentifier): Promise<IntentResolution>;
Parameters
ParameterTypeDescription
rowNodeIRowNodeThe Row Node
intentIntentThe FDC3 Intent
contextTypeContextTypeThe FDC3 Context Type
appIdentifierAppIdentifierThe App Identifier
Returns

Promise<IntentResolution>