Package io.rong.push.pushconfig

## Interface PushRequestManager.ISetPushTokenResultCallback

- All Implemented Interfaces:

      public interface PushRequestManager.ISetPushTokenResultCallback

- - ### 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 void` | `onSuccess(PushType pushType, String pushToken, String message, Map<String, String> failMap)` | 设置 token 成功回调
    `abstract void` | `onError(PushErrorCode code, String errorInfo)` | 设置 token 失败回调
    `abstract void` | `onFail(PushType pushType, PushErrorCode code)` | 设置 token 服务端错误返回，回调

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

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

- - ### Constructor Detail

  - ### Method Detail

    - #### onSuccess

           abstract void onSuccess(PushType pushType, String pushToken, String message, Map<String, String> failMap)

      设置 token 成功回调

      Parameters:
        `pushType` - 推送类型
        `pushToken` - 设置成功的 token 值

    - #### onError

           abstract void onError(PushErrorCode code, String errorInfo)

      设置 token 失败回调

      Parameters:
        `code` - 失败错误码

    - #### onFail

           abstract void onFail(PushType pushType, PushErrorCode code)

      设置 token 服务端错误返回，回调

      Parameters:
        `pushType` - 推送类型
        `code` - 失败错误码