OpenChannelHandler

public interface OpenChannelHandler

Open channel unified event handler.

Listen open channel Operation Status (Join, Leave, destroy), Event Notification (multi-device Sync, Ban, Mute), meta Data (KV) change and Member Change.

all Method all Provides completed Default empty Implements, Call only need to override relevant Note Method i.e. can.

Functions

Link copied to clipboard
public Unit onChannelDestroyed(String channelId, DestroyType type)

channel Was/were destroy.

Link copied to clipboard
public Unit onEnter(String channelId, OpenChannelJoinResponse response)

Success Join channel.

Link copied to clipboard
public Unit onEnterFailed(String channelId, NCError error)

Operation exception.

Link copied to clipboard
public Unit onEntering(String channelId)

positive In Join channel.

Link copied to clipboard
public Unit onExit(String channelId)

Already Leave channel.

Link copied to clipboard

Member Ban/Unban Event.

Link copied to clipboard

Member Change Callback.

Link copied to clipboard

Member Mute/Unmute Event.

Link copied to clipboard
public Unit onMetadataDelete(String channelId, Map<String, String> removedEntries)

KV Data Was/were Delete.

Link copied to clipboard
public Unit onMetadataSynced(String channelId)

just Join channel When KV Sync completed.

Link copied to clipboard
public Unit onMetadataUpdate(String channelId, Map<String, String> updatedEntries)

KV Data Update.

Link copied to clipboard

multi-device login Sync Event.

Link copied to clipboard
public Unit onReset(String channelId)

channel Was/were reset.