RRAbstractLayout

Objective-C

@interface RRAbstractLayout : NSObject

Swift

class RRAbstractLayout : NSObject

Base class for layouts. Can be used together with RRGLRenderView and RRRenderable to display content. The layout manages renderable positioning, animations and user interaction.

  • Enables/disables all animations for this layout. This obviously also means that no animation started/ended callbacks are fired.

    Declaration

    Objective-C

    @property (nonatomic) BOOL animationsEnabled;

    Swift

    var animationsEnabled: Bool { get set }
  • Sets the callback that should be called an animation started

    Declaration

    Objective-C

    - (void)setAnimationStartedCallback:
        (nullable void (^)(NSString *_Nonnull))callback;

    Swift

    func setAnimationStartedCallback(_ callback: ((String) -> Void)?)

    Parameters

    callback

    The callback function with the animation identifier as a parameter

  • Sets the callback that should be called when an animation ended

    Declaration

    Objective-C

    - (void)setAnimationEndedCallback:
        (nullable void (^)(NSString *_Nonnull))callback;

    Swift

    func setAnimationEndedCallback(_ callback: ((String) -> Void)?)

    Parameters

    callback

    The callback function with the animation identifier as a parameter