setCurrentScreen static method
Informs Digia that the user has navigated to a new screen.
This call is forwarded internally to the registered CEP plugin, which calls its own screen-tracking API (e.g. CleverTap.recordScreenView). Replace any existing CEP screen-tracking calls with this single call.
The name is also what campaigns targeted at specific screens are matched
against: a campaign scoped to screens in the dashboard only renders while
name is one of them. Campaigns with no screen targeting are unaffected.
A blank name clears the current screen, which drops every screen-targeted
campaign until the next call.
For automatic screen tracking, add DigiaNavigatorObserver to MaterialApp.navigatorObservers instead.
Digia.setCurrentScreen('checkout');
Implementation
static void setCurrentScreen(String name) {
DigiaInstance.instance.setCurrentScreen(name);
}