RBSlidingPageContainerViewDelegate Protocol Reference
Conforms to | NSObject |
---|---|
Declared in | RBSlidingPageContainerView.h |
Overview
An RBSlidingPageContainerView
delegate that receives events related to the sliding between pages.
– slidingPageContainerView:willPeakAtIndex:
Called when a swipe gesture will reveal the page at the given index (but not select it).
- (void)slidingPageContainerView:(nonnull RBSlidingPageContainerView *)slidingPageContainerView willPeakAtIndex:(NSUInteger)index
Parameters
slidingPageContainerView |
The sliding page container view. |
---|---|
index |
The page index. |
Discussion
Called when a swipe gesture will reveal the page at the given index (but not select it).
Declared In
RBSlidingPageContainerView.h
– slidingPageContainerView:didPeakAtIndex:didBecomeCurrentPage:
Called when a swipe gesture did reveal the page at the given index (but not select it).
- (void)slidingPageContainerView:(nonnull RBSlidingPageContainerView *)slidingPageContainerView didPeakAtIndex:(NSUInteger)index didBecomeCurrentPage:(BOOL)didBecomeCurrentPage
Parameters
slidingPageContainerView |
The sliding page container view. |
---|---|
index |
The page index. |
didBecomeCurrentPage |
Whether or not the page did become the current page. |
Discussion
Called when a swipe gesture did reveal the page at the given index (but not select it).
Declared In
RBSlidingPageContainerView.h
– slidingPageContainerView:willMoveFromIndex:toIndex:animated:
The sliding page container view will slide from one page to another.
- (void)slidingPageContainerView:(nonnull RBSlidingPageContainerView *)slidingPageContainerView willMoveFromIndex:(NSUInteger)fromIndex toIndex:(NSUInteger)toIndex animated:(BOOL)animated
Parameters
slidingPageContainerView |
The sliding page container view. |
---|---|
fromIndex |
The index of the page being moved away from. |
toIndex |
The index of the page being moved to. |
animated |
Whether or not the operation is animated. |
Discussion
The sliding page container view will slide from one page to another.
Declared In
RBSlidingPageContainerView.h
– slidingPageContainerView:didMoveFromIndex:toIndex:animated:
The sliding page container view did slide from one page to another.
- (void)slidingPageContainerView:(nonnull RBSlidingPageContainerView *)slidingPageContainerView didMoveFromIndex:(NSUInteger)fromIndex toIndex:(NSUInteger)toIndex animated:(BOOL)animated
Parameters
slidingPageContainerView |
The sliding page container view. |
---|---|
fromIndex |
The index of the page being moved away from. |
toIndex |
The index of the page being moved to. |
animated |
Whether or not the operation is animated. |
Discussion
The sliding page container view did slide from one page to another.
Declared In
RBSlidingPageContainerView.h