RBToastAlertView Class Reference
Inherits from | UIView |
---|---|
Declared in | RBToastAlertView.h |
delegate
A delegate to receive toast presentation events.
@property (nonatomic, weak, nullable) id<RBToastAlertViewDelegate> delegate
Discussion
A delegate to receive toast presentation events.
Declared In
RBToastAlertView.h
margin
The margin to provide around the content of the alert.
@property (nonatomic) UIEdgeInsets margin
Discussion
The margin to provide around the content of the alert.
Declared In
RBToastAlertView.h
presentationVerticalAlignment
The vertical alignment of the toast notification in it’s parent view. Default = RBVerticalAlignmentMiddle
.
@property (nonatomic) RBVerticalAlignment presentationVerticalAlignment
Discussion
The vertical alignment of the toast notification in it’s parent view. Default = RBVerticalAlignmentMiddle
.
Declared In
RBToastAlertView.h
presentationHorizontalAlignment
The horizontal alignment of the toast notification in it’s parent view. Default = RBHorizontalAlignmentCenter
.
@property (nonatomic) RBHorizontalAlignment presentationHorizontalAlignment
Discussion
The horizontal alignment of the toast notification in it’s parent view. Default = RBHorizontalAlignmentCenter
.
Declared In
RBToastAlertView.h
presentationFadeInDuration
The animation duration in seconds of the fade-in transition. Default = 1.
@property (nonatomic) CGFloat presentationFadeInDuration
Discussion
The animation duration in seconds of the fade-in transition. Default = 1.
Declared In
RBToastAlertView.h
presentationFadeOutDuration
The animation duration in seconds of the fade-out transition. Default = 2.5
@property (nonatomic) CGFloat presentationFadeOutDuration
Discussion
The animation duration in seconds of the fade-out transition. Default = 2.5
Declared In
RBToastAlertView.h
isVisible
Whether or not the toast notification is currently visible in it’s parent view.
@property (nonatomic, readonly) BOOL isVisible
Discussion
Whether or not the toast notification is currently visible in it’s parent view.
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. |
Discussion
Presents the toast notification with the given schema.
Declared In
RBToastAlertView.h
– positionInParent
Positions the toast notification within it’s parent view.
- (void)positionInParent
Discussion
Positions the toast notification within it’s parent view.
Declared In
RBToastAlertView.h