Package io.rong.imkit.base

## Class BaseViewModel

- All Implemented Interfaces:

      public class BaseViewModel

  ViewModel 基类，提供错误事件的 LiveData。

  Since:

    5.10.4

  Author:

    rongcloud

- - ### Nested Class Summary

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

  - ### Field Summary

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

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `BaseViewModel(Bundle bundle)` |

  - ### Enum Constant Summary

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

  - ### Method Summary

    Modifier and Type | Method | Description
    --- | --- | ---
    `MutableLiveData<ErrorEvent<CoreErrorCode>>` | `getErrorEventLiveData()` | 获取错误事件的 LiveData，用于观察错误状态。

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

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

- - ### Constructor Detail

    - #### BaseViewModel

          BaseViewModel(Bundle bundle)

  - ### Method Detail

    - #### getErrorEventLiveData

           MutableLiveData<ErrorEvent<CoreErrorCode>> getErrorEventLiveData()

      获取错误事件的 LiveData，用于观察错误状态。

      Returns:

        MutableLiveData< ?>>