public class GroupEventDispatcher extends Object
type
and optional parameters, as follows:
Event Type | Extra Params | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
group_created | None | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
group_deleting | None | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
member_added | A param named member with a String username as a
payload | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
member_removed | A param named member with a String username as a
payload | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
admin_added | A param named admin with a String username
as a payload | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
admin_removed | A param named admin with a String username
as a payload | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
group_modified |
|
Modifier and Type | Class and Description |
---|---|
static class |
GroupEventDispatcher.EventType
Represents valid event types.
|
Modifier and Type | Method and Description |
---|---|
static void |
addListener(GroupEventListener listener)
Registers a listener to receive events.
|
static void |
dispatchEvent(Group group,
GroupEventDispatcher.EventType eventType,
Map params)
Dispatches an event to all listeners.
|
static void |
removeListener(GroupEventListener listener)
Unregisters a listener to receive events.
|
public static void addListener(GroupEventListener listener)
listener
- the listener.public static void removeListener(GroupEventListener listener)
listener
- the listener.public static void dispatchEvent(Group group, GroupEventDispatcher.EventType eventType, Map params)
group
- the group.eventType
- the event type.params
- event parameters.Copyright © 2003–2019 Ignite Realtime. All rights reserved.