Package io.rong.imkit.feature.customservice

## Class CustomServiceBusinessProcessor

- All Implemented Interfaces:

      public class CustomServiceBusinessProcessor

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---

  - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `CustomServiceBusinessProcessor()` |

  - ### Enum Constant Summary

    Enum Constants
    Enum Constant | Description
    --- | ---

  - ### Method Summary

    Modifier and Type | Method | Description
    --- | --- | ---
    `boolean` | `onReceived(MessageViewModel viewModel, UiMessage message, int left, boolean hasPackage, boolean offline)` |
    `void` | `init(MessageViewModel messageViewModel, Bundle bundle)` |
    `boolean` | `onBackPressed(MessageViewModel viewModel)` |
    `void` | `onDestroy(MessageViewModel viewModel)` |
    `void` | `setCustomServiceEvaluateTime(long time)` | 进入客服会话，弹出评价菜单超时时间(单位：秒) 设置为 0 时，任何时候离开客服会话时，都会弹出评价菜单.
    `void` | `setStopCSWhenQuit(boolean value)` | 设置退出会话页面时是否退出客服
    `boolean` | `handleMessage(Message msg)` |
    `CustomServiceConfig` | `getCustomServiceConfig()` |

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

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

- - ### Constructor Detail

    - #### CustomServiceBusinessProcessor

          CustomServiceBusinessProcessor()

  - ### Method Detail

    - #### onReceived

           boolean onReceived(MessageViewModel viewModel, UiMessage message, int left, boolean hasPackage, boolean offline)

    - #### init

           void init(MessageViewModel messageViewModel, Bundle bundle)

    - #### onBackPressed

           boolean onBackPressed(MessageViewModel viewModel)

    - #### onDestroy

           void onDestroy(MessageViewModel viewModel)

    - #### setCustomServiceEvaluateTime

           void setCustomServiceEvaluateTime(long time)

      进入客服会话，弹出评价菜单超时时间(单位：秒) 设置为 0 时，任何时候离开客服会话时，都会弹出评价菜单.

      Parameters:
        `time` - 超时时间

    - #### setStopCSWhenQuit

           void setStopCSWhenQuit(boolean value)

      设置退出会话页面时是否退出客服

      Parameters:
        `value` - 是否关闭客服。

    - #### handleMessage

           boolean handleMessage(Message msg)

    - #### getCustomServiceConfig

           CustomServiceConfig getCustomServiceConfig()