RxPullToRefreshDelegate

@objc
public protocol RxPullToRefreshDelegate : NSObjectProtocol

The interface for handling actions in a RxPullToRefresh object.

  • A delegate method that called each time a user performs an action.

    Declaration

    Swift

    func action(state: RxPullToRefreshState, progress: CGFloat, scroll: CGFloat)

    Parameters

    state

    A RxPullToRefreshState value.

    progress

    A CGFloat value indicating a progress rate. The value is limited to between 0 and 1.

    scroll

    A CGFloat value indicating a scroll rate. The value is limited to between 0 and 1.