Package io.rong.imkit.feature.resend

## Class ResendManager

- All Implemented Interfaces:

      public class ResendManager

  用于管理重新发送

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---
    `public interface` | `ResendManager.AddResendMessageCallBack` |

  - ### 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
    --- | --- | ---
    `static ResendManager` | `getInstance()` |
    `void` | `addResendMessage(Message message, ErrorCode errorCode, ResendManager.AddResendMessageCallBack callBack)` |
    `void` | `removeResendMessage(int messageId)` |
    `void` | `removeResendMessages(Array<int> messageIds)` |
    `void` | `removeAllResendMessage()` |
    `boolean` | `needResend(int messageId)` |
    `void` | `beginResend()` |
    `boolean` | `isResendErrorCode(ErrorCode errorCode)` | 是否为需要重发处理的错误码

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

  - ### Method Detail

    - #### getInstance

           static ResendManager getInstance()

    - #### addResendMessage

           void addResendMessage(Message message, ErrorCode errorCode, ResendManager.AddResendMessageCallBack callBack)

    - #### removeResendMessage

           void removeResendMessage(int messageId)

    - #### removeResendMessages

           void removeResendMessages(Array<int> messageIds)

    - #### removeAllResendMessage

           void removeAllResendMessage()

    - #### needResend

           boolean needResend(int messageId)

    - #### beginResend

           void beginResend()

    - #### isResendErrorCode

           boolean isResendErrorCode(ErrorCode errorCode)

      是否为需要重发处理的错误码

      Parameters:
        `errorCode` - 发送消息的失败错误码
      Returns:

        是否重发，true 会重发， false 不需要重发处理。