Index

RBToastAlertView.h

Protocols

Classes


RBToastAlertView

A view presenting a toast notification message.

Properties

A delegate to receive toast presentation events.
public weak delegate RBToastAlertViewDelegate? { get set }

The margin to provide around the content of the alert.
public margin UIEdgeInsets { get set }

The margin to provide around the toast alert itself within it's parent view.
public presentationMargin UIEdgeInsets { get set }

The vertical alignment of the toast notification in it's parent view. Default = RBVerticalAlignmentMiddle.
public presentationVerticalAlignment RBVerticalAlignment { get set }

The horizontal alignment of the toast notification in it's parent view. Default = RBHorizontalAlignmentCenter.
public presentationHorizontalAlignment RBHorizontalAlignment { get set }

The animation duration in seconds of the fade-in transition. Default = 1.
public presentationFadeInDuration CGFloat { get set }

The animation duration in seconds of the fade-out transition. Default = 2.5
public presentationFadeOutDuration CGFloat { get set }

Whether or not the toast notification is currently visible in it's parent view.
public isVisible Bool { get }

Functions

Presents the toast notification with the given schema.
@param schema : The schema describing the toast notification content.
@param completion : An optional block to be called when the presentation transition is complete.
- (void)presentWithSchema:(nonnull RBToastAlertSchema *)schema completion:(nullable dispatch_block_t)completion;