-
Notifications
You must be signed in to change notification settings - Fork 3
DeepWall 2.0 Migration Guide
Burak Yalçın edited this page Nov 4, 2020
·
2 revisions
- Removed
DeepWallNotifierHub
- Added new event handling method for easier usage
Old Method:
- DeepWallNotifierHub.observe(.landingPurchasingProduct) { model in
- }
New Method:
+ DeepWall.shared.observeEvents(for: self)
First implement DeepWallNotifierDelegate
protocol to your class. Then you could use observeEvents
method for observing events.
DeepWall.shared.observeEvents(for: self)
For removing observer, you could use removeObserver
method.
DeepWall.shared.removeObserver(for: self)
For all event details, you could inspect DeepWallNotifierDelegate
protocol or DeepWall documentation.
Old Method:
- DeepWall.shared.requestLanding(action: "{ACTION_KEY}", in: self)
New Method:
+ DeepWall.shared.requestPaywall(action: "{ACTION_KEY}", in: self)
Old Method:
- DeepWall.shared.closeLanding()
New Method:
+ DeepWall.shared.closePaywall()