RichieSwiperDataSourceAdViewPolicy

Objective-C

@protocol RichieSwiperDataSourceAdViewPolicy <NSObject>

-(UIView *) viewForSwiper:(id<RichieSwiper>)swiper atIndex:(NSInteger)pageIndex;
-(void) pageWasRemoved:(__kindof UIView *)view inSwiper:(id<RichieSwiper> __unused)swiper atIndex:(NSInteger)pageIndex isAdPage:(BOOL)isAdPage;

@property (nonatomic, readonly) NSInteger numberOfAdViews;

-(void) pageDidAppear:(NSInteger)pageIndex inSwiper:(id<RichieSwiper>)swiper isAdPage:(BOOL)isAdPage isFirstAppearance:(BOOL)isFirstAppearance;
-(void) pageDidDisappear:(NSInteger)pageIndex inSwiper:(id<RichieSwiper>)swiper isAdPage:(BOOL)isAdPage;

-(NSInteger) currentPageIndexRestoringAdViewsWhenSettingCurrentPageIndex:(NSInteger)newPageIndex
												 withNumberOfOriginPages:(NSInteger)numberOfOriginPages;

-(BOOL) isAdIndex:(NSInteger)pageIndex;

-(NSInteger) swiperIndexFromOriginIndex:(NSInteger)originIndex;
-(NSInteger) originIndexFromSwiperIndex:(NSInteger)swiperIndex;

-(void) willReloadDataWithNumberOfOriginPages:(NSInteger)numberOfOriginPages;
-(void) didReloadData;

-(void) didInsertPageAtOriginIndex:(NSInteger)originIndex inSwiper:(id<RichieSwiper>)swiper;

@property (nonatomic, readonly) BOOL areAppearanceCallbacksDisabled;

@end

Swift

protocol RichieSwiperDataSourceAdViewPolicy : NSObjectProtocol

Undocumented

  • Undocumented

    Declaration

    Objective-C

    -(UIView *) viewForSwiper:(id<RichieSwiper>)swiper atIndex:(NSInteger)pageIndex;

    Swift

    func view(for swiper: (any RichieSwiper)!, at pageIndex: Int) -> UIView!
  • Undocumented

    Declaration

    Objective-C

    -(void) pageWasRemoved:(__kindof UIView *)view inSwiper:(id<RichieSwiper> __unused)swiper atIndex:(NSInteger)pageIndex isAdPage:(BOOL)isAdPage;

    Swift

    func pageWasRemoved(_ view: UIView!, in swiper: (any RichieSwiper)!, at pageIndex: Int, isAdPage: Bool)
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSInteger numberOfAdViews

    Swift

    var numberOfAdViews: Int { get }
  • Undocumented

    Declaration

    Objective-C

    -(void) pageDidAppear:(NSInteger)pageIndex inSwiper:(id<RichieSwiper>)swiper isAdPage:(BOOL)isAdPage isFirstAppearance:(BOOL)isFirstAppearance;

    Swift

    func pageDidAppear(_ pageIndex: Int, in swiper: (any RichieSwiper)!, isAdPage: Bool, isFirstAppearance: Bool)
  • Undocumented

    Declaration

    Objective-C

    -(void) pageDidDisappear:(NSInteger)pageIndex inSwiper:(id<RichieSwiper>)swiper isAdPage:(BOOL)isAdPage;

    Swift

    func pageDidDisappear(_ pageIndex: Int, in swiper: (any RichieSwiper)!, isAdPage: Bool)
  • Undocumented

    Declaration

    Objective-C

    -(NSInteger) currentPageIndexRestoringAdViewsWhenSettingCurrentPageIndex:(NSInteger)newPageIndex
    												 withNumberOfOriginPages:(NSInteger)numberOfOriginPages;

    Swift

    func currentPageIndexRestoringAdViews(whenSettingCurrentPageIndex newPageIndex: Int, withNumberOfOriginPages numberOfOriginPages: Int) -> Int
  • Undocumented

    Declaration

    Objective-C

    -(BOOL) isAdIndex:(NSInteger)pageIndex;

    Swift

    func isAdIndex(_ pageIndex: Int) -> Bool
  • Undocumented

    Declaration

    Objective-C

    -(NSInteger) swiperIndexFromOriginIndex:(NSInteger)originIndex;

    Swift

    func swiperIndex(fromOriginIndex originIndex: Int) -> Int
  • Undocumented

    Declaration

    Objective-C

    -(NSInteger) originIndexFromSwiperIndex:(NSInteger)swiperIndex;

    Swift

    func originIndex(fromSwiperIndex swiperIndex: Int) -> Int
  • Undocumented

    Declaration

    Objective-C

    -(void) willReloadDataWithNumberOfOriginPages:(NSInteger)numberOfOriginPages;

    Swift

    func willReloadData(withNumberOfOriginPages numberOfOriginPages: Int)
  • Undocumented

    Declaration

    Objective-C

    -(void) didReloadData;

    Swift

    func didReloadData()
  • Undocumented

    Declaration

    Objective-C

    -(void) didInsertPageAtOriginIndex:(NSInteger)originIndex inSwiper:(id<RichieSwiper>)swiper;

    Swift

    func didInsertPage(atOriginIndex originIndex: Int, in swiper: (any RichieSwiper)!)
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL areAppearanceCallbacksDisabled

    Swift

    var areAppearanceCallbacksDisabled: Bool { get }