refactored to use new ModelHandler

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2022-03-03 16:14:06 -06:00
parent f61e67df6b
commit 052165420d

View File

@ -8,11 +8,9 @@
import Foundation
open class ActionOpenUrlHandler: MVMCoreActionHandlerProtocol {
required public init() {}
open class ActionOpenUrlHandler: ModelHandler<ActionOpenUrlModel, Void> {
open func handleAction(_ model: ActionModelProtocol, additionalData: [AnyHashable : Any]?, delegateObject: DelegateObject?) {
guard let model = model as? ActionOpenUrlModel else { return }
public override func perform() {
MVMCoreDispatchUtility.performBlock(onMainThread: { [self] in
// Try loading the app url first, otherwise fall back to browser url.
guard let appURL = model.appURL else {