MRDBottomSheetMediator Protocol Reference
Conforms to | MRDBottomSheetDelegate NSObject |
---|---|
Declared in | MRDBottomSheetProtocols.h |
Overview
This acts as a mediator design pattern to execute all parties that may be interested in any methods from MRDBottomSheetDelegate. These methods relate to the actions of MRBottomSheetViewController. It is recommended the implementation holds weak references as they drop out. Simply add and remove the instance that adheres to MRDBottomSheetDelegate and they will get their mediated response.
– addBottomSheetDelegate:
required method
Adds the delegate to the mediator to call when a MRBottomSheetDelegate method is executed on the MRBottomSheetViewController.
- (void)addBottomSheetDelegate:(nonnull id<MRDBottomSheetDelegate>)delegate
Parameters
delegate |
Delegate to add to the sheet mediator. |
---|
Declared In
MRDBottomSheetProtocols.h
– removeBottomSheetDelegate:
required method
Removes the delegate from the mediator to cease receiving execution.
- (void)removeBottomSheetDelegate:(nonnull id<MRDBottomSheetDelegate>)delegate
Parameters
delegate |
Delegate to remove from the sheet mediator. |
---|
Declared In
MRDBottomSheetProtocols.h
– executeSelector:
A convenient way to execute a selector on all mediator peers.
- (void)executeSelector:(nonnull SEL)selector
Parameters
selector |
Selector to test for and execute on a mediator if the mediator respondsToSelector:. |
---|
Declared In
MRDBottomSheetProtocols.h