RRCarouselRenderableDelegate

Objective-C

@protocol RRCarouselRenderableDelegate <NSObject>

Swift

protocol RRCarouselRenderableDelegate : NSObjectProtocol

This protocol is used by the RRCarouselRenderable class to inform about actions of the carousel renderable

  • This method informs that an item inside the carousel was selected

    Declaration

    Objective-C

    - (void)carousel:(nonnull RRCarouselRenderable *)carousel
        itemWasSelectedAtIndex:(NSUInteger)index;

    Swift

    func carousel(_ carousel: Any!, itemWasSelectedAt index: UInt)

    Parameters

    carousel

    The carousel renderable that calls this method

    index

    The index of the selected renderable. This index corresponds to the renderable returned by the dataSource

  • This method informs that the carousel registered a tap outside the carosuel bounding box. Use this method to for instance dismiss the carosuel

    Declaration

    Objective-C

    - (void)carouselRegisteredTapOutsideBoundingBox:
        (nonnull RRCarouselRenderable *)carousel;

    Swift

    func carouselRegisteredTapOutsideBoundingBox(_ carousel: Any!)

    Parameters

    carousel

    The carousel renderable that calls this method