Group Channel Handler
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
Called when a group application event occurs.
Called when group favorites (special-follow) changes are synced across devices.
Called when group info is changed.
Called when a group member's info is changed.
Called when a group operation event occurs.