com.backendless.rt.messaging.Channel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-sdk-common Show documentation
Show all versions of java-sdk-common Show documentation
Provides access to Backendless API
The newest version!
package com.backendless.rt.messaging;
import com.backendless.async.callback.AsyncCallback;
import com.backendless.rt.RTListener;
import com.backendless.rt.command.Command;
import com.backendless.rt.users.UserStatusResponse;
public interface Channel extends RTListener
{
void join( );
void leave();
boolean isJoined();
void addJoinListener( AsyncCallback callback );
void removeJoinListener( AsyncCallback callback );
//----------------------------------
void addMessageListener( AsyncCallback callback );
void addMessageListener( AsyncCallback callback, Class clazz );
void addMessageListener( String selector, AsyncCallback callback );
void addMessageListener( String selector, AsyncCallback callback, Class clazz );
void addMessageListener( String selector, final MessageInfoCallback callback );
void addMessageListener( final MessageInfoCallback callback );
void removeMessageListeners( String selector );
void removeMessageListener( AsyncCallback> callback );
void removeMessageListeners( String selector, AsyncCallback> callback );
void removeAllMessageListeners();
//----------------------------------
void addCommandListener( Class dataType, AsyncCallback> callback );
void addCommandListener( AsyncCallback> callback );
void sendCommand( String type, Object data );
void sendCommand( String type, Object data, AsyncCallback callback );
void removeCommandListener( AsyncCallback callback );
//----------------------------------
void addUserStatusListener( AsyncCallback callback );
void removeUserStatusListeners();
void removeUserStatusListener( AsyncCallback callback );
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy