Object RTCBridge

  • All Implemented Interfaces:

    
    public class RTCBridge
    
                        

    RTC bridge entry point.

    Provides all im_libcore capabilities required by the RTC module. The RTC module accesses underlying IM core functionality through this class without directly depending on im_libcore.

    This class is for internal RTC module use only. External developers should not call this directly. External calls will trigger Android Lint errors.

    • Constructor Detail

    • Method Detail

      • getVoIPInfo

         final String getVoIPInfo()

        Gets VoIP information.

        Returns:

        VoIP configuration as a JSON string.

      • getVersion

         final String getVersion()

        Gets the SDK version.

        Returns:

        SDK version string.

      • isPrivateSDK

         final Boolean isPrivateSDK()

        Checks whether this is a private cloud SDK.

        Returns:

        true for private cloud, false for public cloud.

      • getDeviceId

         final String getDeviceId()

        Gets the unique device identifier.

        Returns:

        device ID string.

      • getDeltaTime

         final Long getDeltaTime()

        Gets the time delta between the local clock and the server clock.

        Use System.currentTimeMillis() - getDeltaTime() to obtain the current server time.

        Returns:

        time delta in milliseconds.

      • getNavPreferenceValue

         final String getNavPreferenceValue(String key)

        Gets a navigation preference value.

        Parameters:
        key - Preference key name
        Returns:

        preference value, or an empty string if not found.

      • getPrivateCloudConfig

         final Boolean )>getPrivateCloudConfig(<Error class: unknown class> context)

        Gets private cloud configuration.

        Parameters:
        context - Application context
        Returns:

        true if the environment is private cloud.

      • sendRtcSignaling

         final Unit sendRtcSignaling(String roomId, String methodName, Boolean isQuery, ByteArray buffer, Integer timeoutSec, RTCCallback<ByteArray> callback)

        Sends an RTC signaling message.

        Parameters:
        roomId - Room ID
        methodName - Method name
        isQuery - true for Query type, false for Publish type
        buffer - Protobuf-encoded data
        timeoutSec - Timeout in seconds
        callback - Asynchronous result callback
      • cancelRTCSignaling

         final Unit cancelRTCSignaling(IntArray requestIds)

        Cancels pending RTC signaling requests.

        Parameters:
        requestIds - List of request IDs to cancel
      • forceReconnect

         final Unit forceReconnect(RTCCallback<String> callback)

        Forces a reconnection.

        RTC-specific: forces the SDK to disconnect and reconnect.

        Parameters:
        callback - Reconnection result callback
      • sendRTCHeartbeat

         final Unit sendRTCHeartbeat(Array<String> roomIds, Integer timeout)

        Sends an RTC heartbeat.

        Parameters:
        roomIds - List of room IDs
        timeout - Timeout in seconds
      • requestNav

         final Unit requestNav(String appKey, String token, Boolean notify, String reason)

        Requests a navigation refresh.

        Used by RTC to re-fetch the navigation JWT.

        Parameters:
        appKey - Application key
        token - User token
        notify - Whether to send a notification
        reason - Reason for the request
      • solveServerHosts

         final Unit solveServerHosts(String host, RTCCallback<List<String>> callback)

        Resolves server hostnames.

        Parameters:
        host - Hostname to resolve
        callback - Result callback returning a list of IP addresses
      • writeLog

         final Unit writeLog(Integer level, Integer type, String tag, String keys, Object values)

        Writes a log entry.

        Parameters:
        level - Log level
        type - Log type
        tag - Log tag
        keys - Key names
        values - Key values
      • sendGroupCallSignalInfo

         final Unit sendGroupCallSignalInfo(String targetId, String key, String signalInfo, CallPlusSignalCallback callback)

        Sends group call signaling.

        Pending IM implementation.

        Parameters:
        targetId - Target ID
        key - Signaling key
        signalInfo - Signaling content
        callback - Asynchronous result callback
      • registerExtensionModule

         final Unit registerExtensionModule(RTCExtensionModule module)

        Registers an RTC extension module.

        Extension modules registered through this method will receive SDK lifecycle callbacks and message routing.

        Parameters:
        module - RTC extension module instance