Class ZegoEventManager
- java.lang.Object
-
- com.zego.zegoliveroom.utils.zegoevent.ZegoEventManager
-
public class ZegoEventManager extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ZegoEventManager.IZegoEventListener
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ZEGO_EVENT_ID_INITSDK
static java.lang.String
ZEGO_EVENT_ID_LOGOUT_ROOM
static java.lang.String
ZEGO_EVENT_ID_UNINITSDK
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ZegoEventManager
getInstance()
获取 ZegoEventManager 的单例对象。 注意:公共事件模块,仅供zego内部使用void
onActiveEvent(java.lang.String eventID)
激活事件boolean
registerEvent(java.lang.String eventID, ZegoEventManager.IZegoEventListener listener)
添加事件void
unregisterEvent(java.lang.String eventID, ZegoEventManager.IZegoEventListener listener)
移除事件
-
-
-
Method Detail
-
getInstance
public static ZegoEventManager getInstance()
获取 ZegoEventManager 的单例对象。 注意:公共事件模块,仅供zego内部使用- Returns:
- ZegoEventManager 的单例对象
-
registerEvent
public boolean registerEvent(java.lang.String eventID, ZegoEventManager.IZegoEventListener listener)
添加事件- Parameters:
eventID
- 事件IDlistener
- 监听者
-
unregisterEvent
public void unregisterEvent(java.lang.String eventID, ZegoEventManager.IZegoEventListener listener)
移除事件- Parameters:
eventID
- 事件IDlistener
- 监听者
-
onActiveEvent
public void onActiveEvent(java.lang.String eventID)
激活事件- Parameters:
eventID
-
-
-