registerEventHandler abstract method
Adds the main callback event.
The interface class RtcEngineEventHandler is used by the SDK to send callback event notifications to the App. The App receives SDK event notifications by inheriting methods from this interface class. All methods in the interface class have default (empty) implementations. The App can choose to inherit only the events it cares about. In callback methods, the App should not perform time-consuming tasks or call APIs that may block (e.g., sendStreamMessage), otherwise it may affect the operation of the SDK.
eventHandlerThe callback event to be added. See RtcEngineEventHandler.
Returns No return value if the method call succeeds; if the method call fails, an AgoraRtcException is thrown, which you need to catch and handle. See Error Codes for details and troubleshooting suggestions.
Implementation
void registerEventHandler(RtcEngineEventHandler eventHandler);