RBToastAlertView Class Reference

Inherits from UIView
Declared in RBToastAlertView.h

Overview

A view presenting a toast notification message.

  delegate

A delegate to receive toast presentation events.

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

Declared In

RBToastAlertView.h

  margin

The margin to provide around the content of the alert.

@property (nonatomic) UIEdgeInsets margin

Declared In

RBToastAlertView.h

  presentationMargin

The margin to provide around the toast alert itself within it’s parent view.

@property (nonatomic) UIEdgeInsets presentationMargin

Declared In

RBToastAlertView.h

  presentationVerticalAlignment

The vertical alignment of the toast notification in it’s parent view. Default = RBVerticalAlignmentMiddle.

@property (nonatomic) RBVerticalAlignment presentationVerticalAlignment

Declared In

RBToastAlertView.h

  presentationHorizontalAlignment

The horizontal alignment of the toast notification in it’s parent view. Default = RBHorizontalAlignmentCenter.

@property (nonatomic) RBHorizontalAlignment presentationHorizontalAlignment

Declared In

RBToastAlertView.h

  presentationFadeInDuration

The animation duration in seconds of the fade-in transition. Default = 1.

@property (nonatomic) CGFloat presentationFadeInDuration

Declared In

RBToastAlertView.h

  presentationFadeOutDuration

The animation duration in seconds of the fade-out transition. Default = 2.5

@property (nonatomic) CGFloat presentationFadeOutDuration

Declared In

RBToastAlertView.h

  isVisible

Whether or not the toast notification is currently visible in it’s parent view.

@property (nonatomic, readonly) BOOL isVisible

Declared In

RBToastAlertView.h

– presentWithSchema:completion:

Presents the toast notification with the given schema.

- (void)presentWithSchema:(nonnull RBToastAlertSchema *)schema completion:(nullable dispatch_block_t)completion

Parameters

schema

The schema describing the toast notification content.

completion

An optional block to be called when the presentation transition is complete.

Declared In

RBToastAlertView.h

– positionInParent

Positions the toast notification within it’s parent view.

- (void)positionInParent

Declared In

RBToastAlertView.h