Agora Java API Reference for Android

Public Member Functions | List of all members
io.agora.rtm.ResultCallback< T > Interface Template Reference

## Public Member Functions
void | onSuccess (T responseInfo)
void | onFailure (ErrorInfo errorInfo)

## Detailed Description

The ResultCallback interface contains callbacks indicating the results of a method call:

## Member Function Documentation

## ◆ onSuccess()

void io.agora.rtm.ResultCallback< T >.onSuccess | ( | T | responseInfo | ) |

Occurs when a method call succeeds.

Parameters

  responseInfo | The response information. Can be set as void.

## ◆ onFailure()

void io.agora.rtm.ResultCallback< T >.onFailure | ( | ErrorInfo | errorInfo | ) |

Occurs when a method call fails.

Parameters

  errorInfo | The error code. See ErrorInfo.