Skip to content

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

Event Handling

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.

Requesting Paywall

Old Method:
- DeepWall.shared.requestLanding(action: "{ACTION_KEY}", in: self)
New Method:
+ DeepWall.shared.requestPaywall(action: "{ACTION_KEY}", in: self)

Closing Paywall

Old Method:
- DeepWall.shared.closeLanding()
New Method:
+ DeepWall.shared.closePaywall()
Clone this wiki locally