Package io.rong.imkit.widget

## Class RongSwipeRefreshLayout

- All Implemented Interfaces:

      public class RongSwipeRefreshLayout

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---
    `public interface` | `RongSwipeRefreshLayout.OnLoadListener` |
    `public interface` | `RongSwipeRefreshLayout.OnFlushListener` |

  - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---
    `public boolean` | `isRefreshFinish` |
    `public boolean` | `isLoadMoreFinish` |

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `RongSwipeRefreshLayout(Context context)` |
    `RongSwipeRefreshLayout(Context context, AttributeSet attrs)` |

  - ### Enum Constant Summary

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

  - ### Method Summary

    Modifier and Type | Method | Description
    --- | --- | ---
    `boolean` | `dispatchTouchEvent(MotionEvent ev)` |
    `void` | `setRefreshing(boolean flushing)` | 设置刷新状态，是否刷新有参数 flushing 控制
    `void` | `setLoadMoreFinish(boolean loading)` | 设置加载状态，是否加载传入boolean值进行判断
    `void` | `setCanRefresh(boolean enabled)` | 设置是否可以下拉刷新
    `void` | `setCanLoading(boolean enabled)` |
    `void` | `setOnLoadListener(RongSwipeRefreshLayout.OnLoadListener listener)` |
    `void` | `setOnFlushListener(RongSwipeRefreshLayout.OnFlushListener listener)` |
    `void` | `setAutoLoading(boolean autoLoading)` | 用于设置上拉加载的模式，是将内容滑动底部后自动滑出 FooterView 直接加载， 还是先滑动到最底部，然后再手动的上拉一次才能加载？

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

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

- - ### Constructor Detail

    - #### RongSwipeRefreshLayout

          RongSwipeRefreshLayout(Context context)

    - #### RongSwipeRefreshLayout

          RongSwipeRefreshLayout(Context context, AttributeSet attrs)

  - ### Method Detail

    - #### dispatchTouchEvent

           boolean dispatchTouchEvent(MotionEvent ev)

    - #### setRefreshing

           void setRefreshing(boolean flushing)

      设置刷新状态，是否刷新有参数 flushing 控制

      Parameters:
        `flushing` - 是否刷新

    - #### setLoadMoreFinish

           void setLoadMoreFinish(boolean loading)

      设置加载状态，是否加载传入boolean值进行判断

      Parameters:
        `loading` - 加载状态

    - #### setCanRefresh

           void setCanRefresh(boolean enabled)

      设置是否可以下拉刷新

      Parameters:
        `enabled` - 是否可以下拉刷新

    - #### setCanLoading

           void setCanLoading(boolean enabled)

    - #### setOnLoadListener

           void setOnLoadListener(RongSwipeRefreshLayout.OnLoadListener listener)

    - #### setOnFlushListener

           void setOnFlushListener(RongSwipeRefreshLayout.OnFlushListener listener)

    - #### setAutoLoading

           void setAutoLoading(boolean autoLoading)

      用于设置上拉加载的模式，是将内容滑动底部后自动滑出 FooterView 直接加载， 还是先滑动到最底部，然后再手动的上拉一次才能加载？

      Parameters:
        `autoLoading` - 是将内容滑动底部后自动滑出 FooterView 直接加载， 还是先滑动到最底部，然后再手动的上拉一次才能加载