public class Channel extends Object
| Constructor and Description |
|---|
Channel(DesktopConnection desktopConnection) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addChannelListener(ChannelListener listener) |
void |
connect(String channelName,
AsyncCallback<ChannelClient> callback) |
void |
create(String channelName,
AsyncCallback<ChannelProvider> callback) |
void |
destroy(ChannelBase provider,
AckListener ackListener) |
void |
disconnect(ChannelBase client,
AckListener ackListener) |
protected void |
fireChannelConnectEvent(String channelId,
String uuid,
String name,
String channelName) |
protected void |
fireChannelDisconnectEvent(String channelId,
String uuid,
String name,
String channelName) |
boolean |
hasClient(String channelId) |
boolean |
hasProvider(String channelId) |
boolean |
hasRegisteredAction(String channelId,
String action) |
org.json.JSONObject |
invokeAction(String channelId,
String action,
org.json.JSONObject actionPayload,
org.json.JSONObject senderIdentity) |
void |
processConnection(String channelId,
org.json.JSONObject payload) |
boolean |
removeChannelListener(ChannelListener listener) |
public Channel(DesktopConnection desktopConnection)
public void create(String channelName, AsyncCallback<ChannelProvider> callback)
public void destroy(ChannelBase provider, AckListener ackListener)
public void connect(String channelName, AsyncCallback<ChannelClient> callback)
public void disconnect(ChannelBase client, AckListener ackListener)
public boolean hasProvider(String channelId)
public boolean hasClient(String channelId)
public org.json.JSONObject invokeAction(String channelId, String action, org.json.JSONObject actionPayload, org.json.JSONObject senderIdentity)
public boolean addChannelListener(ChannelListener listener)
public boolean removeChannelListener(ChannelListener listener)
protected void fireChannelConnectEvent(String channelId, String uuid, String name, String channelName)
protected void fireChannelDisconnectEvent(String channelId, String uuid, String name, String channelName)
public void processConnection(String channelId, org.json.JSONObject payload)
Copyright © 2019. All rights reserved.