public class FDC3Client extends AbstractServiceClient
channelClient, channelName, desktopConnection, logger| Modifier and Type | Method and Description |
|---|---|
void |
addContextListener(ContextListener callback,
AckListener ackListener)
Adds a listener for incoming context broadcast from the Desktop Agent.
|
void |
addIntentListener(String intent,
IntentListener listener,
AckListener ackListener)
Adds a listener for incoming Intents from the Agent.
|
void |
broadcast(Context context,
AckListener ackListener)
Publishes context to other apps on the desktop.
|
void |
connect(String nameAlias,
AckListener ackListener) |
void |
findIntent(String intent,
Context context,
AsyncCallback<AppIntent> callback)
Find out more information about a particular intent by passing its name, and optionally its context.
|
void |
findIntentsByContext(Context context,
AsyncCallback<List<AppIntent>> callback)
Find all the avalable intents for a particular context.
|
void |
getChannelById(String id,
AsyncCallback<Channel> callback) |
void |
getDefaultChannel(AsyncCallback<Channel> callback) |
static FDC3Client |
getInstance(DesktopConnection desktopConnection) |
protected void |
onChannelConnected() |
void |
open(String name,
Context context,
AckListener ackListener)
Launches/links to an application by name.
|
void |
raiseIntent(String intent,
Context context,
String target,
AsyncCallback<IntentResolution> callback)
Raises an intent to the desktop agent to resolve.
|
boolean |
removeContextListener(ContextListener listener) |
setChannelNamepublic static FDC3Client getInstance(DesktopConnection desktopConnection)
public void connect(String nameAlias, AckListener ackListener)
connect in class AbstractServiceClientpublic void open(String name, Context context, AckListener ackListener)
name - Application namecontext - Context object that will be provided to the opened application via a contextListenerackListener - AckListener for the requestpublic void broadcast(Context context, AckListener ackListener)
context - Context objectackListener - AckListener for the requestpublic void findIntent(String intent, Context context, AsyncCallback<AppIntent> callback)
intent - Intent namecontext - Context Objectcallback - AckListener for the requestpublic void findIntentsByContext(Context context, AsyncCallback<List<AppIntent>> callback)
context - Context Objectcallback - AckListener for the requestpublic void raiseIntent(String intent, Context context, String target, AsyncCallback<IntentResolution> callback)
intent - Intent namecontext - Context objecttarget - Raise the intent to specified target.callback - The callback that receives the wrapped IntentResolution objectprotected void onChannelConnected()
onChannelConnected in class AbstractServiceClientpublic void addContextListener(ContextListener callback, AckListener ackListener)
callback - The context listenerackListener - AckListener for the requestpublic boolean removeContextListener(ContextListener listener)
public void addIntentListener(String intent, IntentListener listener, AckListener ackListener)
intent - Intent namelistener - The intent listenerackListener - AckListener for the requestpublic void getChannelById(String id, AsyncCallback<Channel> callback)
public void getDefaultChannel(AsyncCallback<Channel> callback)
Copyright © 2020. All rights reserved.