Package io.agora.rtm

Interface ResultCallback<T>


public interface ResultCallback<T>
The ResultCallback interface contains callbacks indicating the results of a method call:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onFailure(ErrorInfo errorInfo)
    Occurs when a method call fails.
    void
    onSuccess(T responseInfo)
    Occurs when a method call succeeds.
  • Method Details

    • onSuccess

      void onSuccess(T responseInfo)
      Occurs when a method call succeeds.
      Parameters:
      responseInfo - The response information. Can be set as void.
    • onFailure

      void onFailure(ErrorInfo errorInfo)
      Occurs when a method call fails.
      Parameters:
      errorInfo - The error code. See ErrorInfo.