From bf7d811510eb50b27f48ff63601200f14f1a3db9 Mon Sep 17 00:00:00 2001 From: "Pfeil, Scott Robert" Date: Fri, 21 Aug 2020 10:40:31 -0400 Subject: [PATCH] support background flag from action --- MVMCore/MVMCore/LoadHandling/MVMCoreRequestParameters.m | 1 + MVMCore/MVMCore/Models/ActionType/ActionOpenPageModel.swift | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/MVMCore/MVMCore/LoadHandling/MVMCoreRequestParameters.m b/MVMCore/MVMCore/LoadHandling/MVMCoreRequestParameters.m index 9986bd7..f2e689f 100644 --- a/MVMCore/MVMCore/LoadHandling/MVMCoreRequestParameters.m +++ b/MVMCore/MVMCore/LoadHandling/MVMCoreRequestParameters.m @@ -69,6 +69,7 @@ self.actionMap = actionMap; self.customTimeoutTime = [actionMap optionalNumberForKey:@"customTimeoutTime"]; self.openSupportPanel = [actionMap boolForKey:KeyOpenSupport]; + self.backgroundRequest = [actionMap boolForKey:@"background"]; // Right now server is sending default.... can't uncomment this until they remove default //self.replaceViewIfOnStackElseLoadWithStyle = [actionMap boolForKey:@"tryToReplaceFirst"]; diff --git a/MVMCore/MVMCore/Models/ActionType/ActionOpenPageModel.swift b/MVMCore/MVMCore/Models/ActionType/ActionOpenPageModel.swift index 94b7a3d..40e7312 100644 --- a/MVMCore/MVMCore/Models/ActionType/ActionOpenPageModel.swift +++ b/MVMCore/MVMCore/Models/ActionType/ActionOpenPageModel.swift @@ -19,16 +19,18 @@ public var analyticsData: JSONValueDictionary? public var presentationStyle: String? public var tabBarIndex: Int? - + public var background: Bool? + //-------------------------------------------------- // MARK: - Initialzier //-------------------------------------------------- - public init(pageType: String, presentationStyle: String? = nil, extraParameters: JSONValueDictionary? = nil, analyticsData: JSONValueDictionary? = nil, tabBarIndex: Int? = nil) { + public init(pageType: String, presentationStyle: String? = nil, extraParameters: JSONValueDictionary? = nil, analyticsData: JSONValueDictionary? = nil, tabBarIndex: Int? = nil, background: Bool? = nil) { self.pageType = pageType self.presentationStyle = presentationStyle self.extraParameters = extraParameters self.analyticsData = analyticsData self.tabBarIndex = tabBarIndex + self.background = background } }