RxPullToRefreshState

@objc
public enum RxPullToRefreshState : Int

An Enumerations indicating scrolling status.

  • A state indicating that a view is not being dragged by user and not scrolling.

    Declaration

    Swift

    case initial
  • A state indicating that a view is being dragged by user.

    Declaration

    Swift

    case pulling
  • A state indicating that user is dragging a view and an offset is over threshold.

    Declaration

    Swift

    case overThreshold
  • A state indicating that user is stop dragging a view and an offset is moved to threshold.

    Declaration

    Swift

    case loading
  • A state indicating that loading is finished. ⚠️To change state to RxPullToRefreshState.finish, you need to explicitly call UIScrollView.p2r.endAllRefreshing(), UIScrollView.p2r.endRefreshing(at:), or RxPullToRefresh.endRefreshing().

    Declaration

    Swift

    case finished
  • A state indicating that loading is failed. ⚠️To change state to RxPullToRefreshState.failed, you need to explicitly call UIScrollView.p2r.failRefreshing(at:), or RxPullToRefresh.failRefreshing().

    Declaration

    Swift

    case failed
  • A state indicating that a view is backing to a default offset.

    Declaration

    Swift

    case backing
  • Declaration

    Swift

    public var description: String { get }
  • Declaration

    Swift

    public static func == (a: RxPullToRefreshState, b: RxPullToRefreshState) -> Bool