RTCExtensionModule

public interface RTCExtensionModule implements Serializable

RTC extension module interface.

Implement this interface and register via RTCBridge.registerExtensionModule to receive SDK lifecycle callbacks and message routing.

This interface is for internal RTC module use only. External developers should not call this directly.

Functions

Link copied to clipboard
public abstract List<Class<? extends RTCMessageContent>> getCmdMessageContentList()

Returns all signaling (command) message types added by this module.

Link copied to clipboard
public abstract List<Class<? extends RTCMessageContent>> getMessageContentList()

Returns all message types added by this module (including signaling messages).

Link copied to clipboard
public abstract Unit onConnectStatusChanged(Integer status)

Connection status change callback.

Link copied to clipboard
public abstract Unit onCreate(<Error class: unknown class> context, String appKey)

Module initialization callback.

Link copied to clipboard
public abstract Unit onDisconnect()

User disconnect callback.

Link copied to clipboard
public abstract Unit onLogin(String userId, String token)

User login callback.

Link copied to clipboard
public abstract Unit onLogout()

User logout callback.

Link copied to clipboard
public abstract Boolean onReceiveMessage(RTCMessage message, Integer left, Boolean offline, Integer cmdLeft)

Message receive callback.

Link copied to clipboard
public abstract Boolean onRequestHardwareResource(Integer resourceType)

Hardware resource request callback.

Link copied to clipboard
public abstract Unit onServiceConnected(<Error class: unknown class> context)

Internal service connected callback.