button map read only property

This commit is contained in:
Suresh, Kamlesh 2018-10-14 23:57:41 -04:00
parent 41a454440e
commit adda2f461b
2 changed files with 7 additions and 0 deletions

View File

@ -23,6 +23,9 @@
// The data for hte page that was loaded
@property (nullable, strong, nonatomic) NSDictionary *pageJSON;
// Contains the button map
@property (nullable, nonatomic, strong, readonly) NSDictionary *buttonMap;
// the modules that are needed
@property (nullable, strong, nonatomic) NSDictionary *modulesJSON;

View File

@ -22,6 +22,10 @@
return self;
}
- (NSDictionary *) buttonMap {
return [self.pageJSON dictionaryForKey:@"ButtonMap"];
}
- (nullable instancetype)initWithRequestParameters:(nullable MVMCoreRequestParameters *)requestParameters dataForPage:(nullable NSDictionary *)dataForPage delegate:(nullable NSObject<MVMCoreLoadDelegateProtocol,MVMCorePresentationDelegateProtocol,MVMCoreActionDelegateProtocol>*)delegate {
if (self = [self initWithDelegate:delegate]) {
self.requestParameters = requestParameters;