OpenChannelHandler

public interface OpenChannelHandler

Open channel event handler.

Listens for all open channel event notifications in a unified manner, including:

  • Operations: entering, entered, enter failure, exited, reset, and channel destruction

  • Notifications: multi-device login sync, member ban/unban, and member mute/unmute

  • Metadata: KV data sync after joining, and incremental KV changes (update/delete)

  • Members: member join/leave changes with updated total count

Register via NCEngine.addOpenChannelHandler. All callback methods have default empty implementations; override only the callbacks you need.

Functions

Link copied to clipboard

Called when the channel is destroyed.

Link copied to clipboard

Called when the user successfully joins a channel.

Link copied to clipboard

Called when a channel operation fails.

Link copied to clipboard

Called when the user is joining a channel.

Link copied to clipboard

Called when the user leaves a channel.

Link copied to clipboard

Called when a member is banned or unbanned.

Link copied to clipboard

Called when channel members change.

Link copied to clipboard

Called when a member is muted or unmuted.

Link copied to clipboard

Called when KV data is updated or deleted.

Link copied to clipboard

Called when KV data sync completes after joining a channel.

Link copied to clipboard

Called for multi-device login sync events.

Link copied to clipboard

Called when the channel is reset.