Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
package io.agora.rtm.internal;
import io.agora.common.internal.CalledByNative;
import io.agora.rtm.ChannelInfo;
import io.agora.rtm.LockDetail;
import io.agora.rtm.LockEvent;
import io.agora.rtm.MessageEvent;
import io.agora.rtm.Metadata;
import io.agora.rtm.PresenceEvent;
import io.agora.rtm.StorageEvent;
import io.agora.rtm.TopicEvent;
import io.agora.rtm.UserState;
/**
* The IRtmEventHandler class.
*/
interface IRtmEventHandler {
@CalledByNative public void onMessageEvent(MessageEvent event);
@CalledByNative public void onPresenceEvent(PresenceEvent event);
@CalledByNative public void onTopicEvent(TopicEvent event);
@CalledByNative public void onLockEvent(LockEvent event);
@CalledByNative public void onStorageEvent(StorageEvent event);
@CalledByNative public void onConnectionStateChanged(String channelName, int state, int reason);
@CalledByNative public void onTokenPrivilegeWillExpire(String channelName);
@CalledByNative public void onJoinResult(long requestId, int errorCode);
@CalledByNative public void onLeaveResult(long requestId, int errorCode);
@CalledByNative public void onJoinTopicResult(long requestId, int errorCode);
@CalledByNative public void onLeaveTopicResult(long requestId, int errorCode);
@CalledByNative
public void onSubscribeTopicResult(
long requestId, String[] succeedUsers, String[] failedUsers, int errorCode);
@CalledByNative public void onSubscribeResult(long requestId, int errorCode);
@CalledByNative public void onPublishResult(long requestId, int errorCode);
@CalledByNative public void onLoginResult(int errorCode);
@CalledByNative public void onSetChannelMetadataResult(long requestId, int errorCode);
@CalledByNative public void onUpdateChannelMetadataResult(long requestId, int errorCode);
@CalledByNative public void onRemoveChannelMetadataResult(long requestId, int errorCode);
@CalledByNative public void onGetChannelMetadataResult(long requestId, long data, int errorCode);
@CalledByNative public void onSetUserMetadataResult(long requestId, int errorCode);
@CalledByNative public void onUpdateUserMetadataResult(long requestId, int errorCode);
@CalledByNative public void onRemoveUserMetadataResult(long requestId, int errorCode);
@CalledByNative public void onGetUserMetadataResult(long requestId, long data, int errorCode);
@CalledByNative public void onSubscribeUserMetadataResult(long requestId, int errorCode);
@CalledByNative public void onSetLockResult(long requestId, int errorCode);
@CalledByNative public void onRemoveLockResult(long requestId, int errorCode);
@CalledByNative public void onReleaseLockResult(long requestId, int errorCode);
@CalledByNative
public void onAcquireLockResult(long requestId, String errorDetails, int errorCode);
@CalledByNative public void onRevokeLockResult(long requestId, int errorCode);
@CalledByNative
public void onGetLocksResult(long requestId, LockDetail[] lockDetailList, int errorCode);
@CalledByNative
public void onWhoNowResult(
long requestId, UserState[] userStateList, long userCount, String nextPage, int errorCode);
@CalledByNative
public void onWhereNowResult(
long requestId, ChannelInfo[] channels, long channelCount, int errorCode);
@CalledByNative
public void onGetOnlineUsersResult(
long requestId, UserState[] userStateList, long userCount, String nextPage, int errorCode);
@CalledByNative
public void onGetUserChannelsResult(
long requestId, ChannelInfo[] channels, long channelCount, int errorCode);
@CalledByNative public void onPresenceSetStateResult(long requestId, int errorCode);
@CalledByNative public void onPresenceRemoveStateResult(long requestId, int errorCode);
@CalledByNative
public void onPresenceGetStateResult(long requestId, UserState state, int errorCode);
}