You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds a listener for incoming contexts of the specified _context type_ whenever a broadcast happens on this channel.
78
81
79
82
If, when this function is called, the channel already contains context that would be passed to the listener it is NOT called or passed this context automatically (this behavior differs from that of the [`fdc3.addContextListener`](DesktopAgent#addcontextlistener) function). Apps wishing to access to the current context of the channel should instead call the [`getCurrentContext(contextType)`](#getcurrentcontext) function.
@@ -175,7 +180,6 @@ If no _context type_ is provided, the most recent context that was broadcast on
175
180
176
181
It is up to the specific Desktop Agent implementation whether and how recent contexts are stored. For example, an implementation could store context history for a channel in a single array and search through the array for the last context matching a provided type, or context could be maintained as a dictionary keyed by context types. An implementation could also choose not to support context history, in which case this method will return `null` for any context type not matching the type of the most recent context.
177
182
178
-
179
183
If getting the current context fails, the promise will return an `Error` with a string from the [`ChannelError`](ChannelError) enumeration.
Metadata relating to the FDC3 [DesktopAgent](DesktopAgent) object and its provider, including the supported version of the FDC3 specification and the name of the provider of the implementation.
122
122
123
-
### See also
123
+
####See also
124
124
*[`DesktopAgent.getInfo`](DesktopAgent#getinfo)
125
125
126
126
## `IntentMetadata`
@@ -137,7 +137,7 @@ interface IntentMetadata {
137
137
The interface used to describe an intent within the platform.
0 commit comments