GroupChannelHandler

public interface GroupChannelHandler

Group channel event handler.

Listens for group-related event notifications, including:

  • Operations: group creation, member join/quit/kick, group dismissal, manager promotion/demotion, and ownership transfer

  • Info changes: group name, portrait, notice, permissions, and other property updates

  • Member changes: member nickname, extra info, and other profile updates within a group

  • Applications: join requests, invitation requests, and their approval/rejection results

  • Favorites sync: special-follow (favorites) changes synced across devices

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

NCEngine.addGroupChannelHandler("GROUP_HANDLER_ID", object : GroupChannelHandler {
override fun onGroupOperation(event: GroupOperationEvent) {
println("Group ${event.groupId} operation: ${event.operation}")
}

override fun onGroupInfoChanged(event: GroupInfoChangedEvent) {
println("Group info changed, properties: ${event.changedProperties}")
}

override fun onGroupApplicationEvent(event: GroupApplicationEvent) {
println("Group application: ${event.info.groupId}, type: ${event.info.type}")
}
})

Functions

Link copied to clipboard

Called when a group application event occurs.

Link copied to clipboard

Called when group favorites (special-follow) changes are synced across devices.

Link copied to clipboard

Called when group info is changed.

Link copied to clipboard

Called when a group member's info is changed.

Link copied to clipboard

Called when a group operation event occurs.