Toggle navigation
Toggle navigation
This project
Loading...
Sign in
open-source
/
warply_sdk_framework
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
Manos Chorianopoulos
2024-04-01 12:31:21 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c0a7041858851c433eb7c80de906f7a579b58062
c0a70418
1 parent
a6591246
add open UnifiedCouponsVC action at webview
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
SwiftWarplyFramework/SwiftWarplyFramework/CampaignViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/CampaignViewController.swift
View file @
c0a7041
...
...
@@ -801,6 +801,18 @@ var timer2: DispatchSourceTimer?
dynatraceEvent
.
_parameters
=
nil
SwiftEventBus
.
post
(
"dynatrace"
,
sender
:
dynatraceEvent
)
}
else
if
(
eventArray
[
1
]
==
"activeCoupons"
)
{
// event:activeCoupons
swiftApi
()
.
getUnifiedCouponsDeals
{
unifiedCoupons
in
let
storyboard
=
UIStoryboard
(
name
:
"Main"
,
bundle
:
Bundle
(
for
:
MyEmptyClass
.
self
))
let
vc
=
storyboard
.
instantiateViewController
(
withIdentifier
:
"UnifiedCouponsViewController"
)
as!
SwiftWarplyFramework
.
UnifiedCouponsViewController
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
failureCallback
:
{
errorCode
in
let
storyboard
=
UIStoryboard
(
name
:
"Main"
,
bundle
:
Bundle
(
for
:
MyEmptyClass
.
self
))
let
vc
=
storyboard
.
instantiateViewController
(
withIdentifier
:
"UnifiedCouponsViewController"
)
as!
SwiftWarplyFramework
.
UnifiedCouponsViewController
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
}
}
...
...
Please
register
or
login
to post a comment