RBPresentationContext Class Reference

Inherits from NSObject
Declared in RBPresentationContext.h

Overview

A presentation context, containing the settings and state data for a presentation.

  delegate

A delegate that is issued dismissal requests from the context.

@property (nonatomic, weak, nullable) id<RBPresentationContextDelegate> delegate

Declared In

RBPresentationContext.h

  animator

The RBPresentationAnimator object that is responsible for presentation and dismissal transitions.

@property (nonatomic, readonly, nullable) RBPresentationAnimator *animator

Declared In

RBPresentationContext.h

  state

The current state of the presentation context.

@property (nonatomic, readonly) RBPresentationState state

Declared In

RBPresentationContext.h

  viewController

The UIViewController being presented.

@property (nonatomic, readonly, nonnull) UIViewController *viewController

Declared In

RBPresentationContext.h

  containerViewController

The presenting UIViewController in which the presentation occurs.

@property (nonatomic, readonly, nonnull) UIViewController *containerViewController

Declared In

RBPresentationContext.h

  doesRequireOrientationLock

Whether or not the presentation requires that the UI orientation is locked.

@property (nonatomic, readonly) BOOL doesRequireOrientationLock

Declared In

RBPresentationContext.h

  data

Logistical presentation data storage.

@property (nonatomic, readonly, nullable) NSDictionary *data

Declared In

RBPresentationContext.h

– initWithView:containerView:layoutBlock:usingAnimator:

Creates a new presentation context.

- (nonnull instancetype)initWithView:(nonnull UIViewController *)viewController containerView:(nonnull UIViewController *)containerViewController layoutBlock:(nonnull PresentationLayoutBlock)layoutBlock usingAnimator:(nonnull RBPresentationAnimator *)animator

Parameters

viewController

The UIViewController to present.

containerViewController

The containing UIViewController to present within.

layoutBlock

The block that is called to determine the frame to position the presented view controller in.

animator

The RBPresentationAnimator object to use in transitions.

Return Value

The configured presentation context.

Declared In

RBPresentationContext.h

– bringViewsToFront

Brings all of views that constitute the presentation to the front.

- (void)bringViewsToFront

Declared In

RBPresentationContext.h