IMLibExtensionModule

public interface IMLibExtensionModule implements Serializable

For usage instructions, please refer to remoteControl or moment

Functions

Link copied to clipboard
public abstract List<Class<? extends MessageContent>> getCmdMessageContentList()
Returns all signaling messages added by this module
Link copied to clipboard
public abstract List<Class<? extends MessageContent>> getMessageContentList()
Returns all new message types added by this module, including signaling messages.
Link copied to clipboard
This method is called when the connection status changes.
Link copied to clipboard
public abstract void onCreate(Context context, String appKey)
The module can be initialized here
Link copied to clipboard
public abstract void onDestroy()
Link copied to clipboard
public abstract void onDisconnect()
Callback triggered when the client actively calls the disconnect method
Link copied to clipboard
public abstract void onLogin(String userId, String token)
Called after connect succeeds.
Link copied to clipboard
public abstract void onLogout()
Callback triggered when the client actively calls the logout method
Link copied to clipboard
public abstract boolean onReceiveMessage(Message message, int left, boolean offline, int cmdLeft)
Call this method only when receiving a new message type added by this module
Link copied to clipboard
public abstract boolean onRequestHardwareResource(ResourceType resourceType)
Request hardware resources
Link copied to clipboard
public abstract void onServiceConnected(Context context, IHandler stub, IRongCoreListener.OnReceiveMessageListener listener)
Callback triggered when the AIDL service connection is successfully established.