Interface RTCCallback

  • All Implemented Interfaces:

    
    public interface RTCCallback<T extends Object>
    
                        

    RTC generic asynchronous callback interface.

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

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Unit onSuccess(T result) Invoked when the operation succeeds.
      abstract Unit onFailed(Integer errorCode) Invoked when the operation fails.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • onSuccess

         abstract Unit onSuccess(T result)

        Invoked when the operation succeeds.

        Parameters:
        result - Data returned on success, may be null
      • onFailed

         abstract Unit onFailed(Integer errorCode)

        Invoked when the operation fails.

        Parameters:
        errorCode - Error code