25 lines
999 B
Objective-C
25 lines
999 B
Objective-C
//
|
|
// MoleculeDelegateProtocol.h
|
|
// MVMCoreUI
|
|
//
|
|
// Created by Scott Pfeil on 5/22/19.
|
|
// Copyright © 2019 Verizon Wireless. All rights reserved.
|
|
//
|
|
#import <UIKit/UIKit.h>
|
|
#import <MVMCoreUI/MVMCoreUIMoleculeViewProtocol.h>
|
|
|
|
@protocol MoleculeDelegateProtocol <NSObject>
|
|
|
|
/// returns a module for the corresponding module name.
|
|
- (nullable NSDictionary *)getModuleWithName:(nullable NSString *)name;
|
|
|
|
@optional
|
|
/// Notifies the delegate that the molecule layout update. Should be called when the layout may change due to an async method.
|
|
- (void)moleculeLayoutUpdated:(nonnull UIView <MVMCoreUIMoleculeViewProtocol>*)molecule;
|
|
|
|
/// Asks the delegate to add or remove molecules.
|
|
- (void)addMolecules:(nonnull NSArray <NSDictionary *>*)molecules sender:(nonnull UITableViewCell *)sender animation:(UITableViewRowAnimation)animation;
|
|
- (void)removeMolecules:(nonnull NSArray <NSDictionary *>*)molecules sender:(nonnull UITableViewCell *)sender animation:(UITableViewRowAnimation)animation;
|
|
|
|
@end
|