-
- All Implemented Interfaces:
public final class NavigationManagerHandle navigation inside the different screens
-
-
Constructor Summary
Constructors Constructor Description NavigationManager(ConfigurationRepository configurationRepository, EventsRepository eventsRepository, ApiEventsRepository apiEventsRepository, ConsentRepository consentRepository, UIProvider uiProvider, UserChoicesInfoProvider userChoicesInfoProvider)
-
Method Summary
Modifier and Type Method Description final UnitshowNotice(FragmentActivity activity)Show the consent notice (if required, not disabled in the config and not already displayed) final UnitforceShowNotice(FragmentActivity activity)Force show the consent notice without checking if consent is required final UnithideNotice()Hide the notice if it is currently displayed final UnitopenPreferences(FragmentActivity activity, SubScreenType subScreenType)Show the preferences popup final UnithidePreferences()Hide the Preferences dialog final UnitshowVendorsFragment(FragmentManager parentFragmentManager)Display Vendor Fragment if not already there final UnitshowSensitivePersonalInformationFragment(FragmentManager parentFragmentManager)Display SPI Fragment if not already there -
-
Constructor Detail
-
NavigationManager
NavigationManager(ConfigurationRepository configurationRepository, EventsRepository eventsRepository, ApiEventsRepository apiEventsRepository, ConsentRepository consentRepository, UIProvider uiProvider, UserChoicesInfoProvider userChoicesInfoProvider)
-
-
Method Detail
-
showNotice
final Unit showNotice(FragmentActivity activity)
Show the consent notice (if required, not disabled in the config and not already displayed)
- Parameters:
activity- base activity to use for notice
-
forceShowNotice
final Unit forceShowNotice(FragmentActivity activity)
Force show the consent notice without checking if consent is required
- Parameters:
activity- base activity to use for notice
-
hideNotice
final Unit hideNotice()
Hide the notice if it is currently displayed
-
openPreferences
final Unit openPreferences(FragmentActivity activity, SubScreenType subScreenType)
Show the preferences popup
- Parameters:
activity- activity used to get the support fragment manager.subScreenType- Sub-screen to open in preferences
-
hidePreferences
final Unit hidePreferences()
Hide the Preferences dialog
-
showVendorsFragment
final Unit showVendorsFragment(FragmentManager parentFragmentManager)
Display Vendor Fragment if not already there
-
showSensitivePersonalInformationFragment
final Unit showSensitivePersonalInformationFragment(FragmentManager parentFragmentManager)
Display SPI Fragment if not already there
-
-
-
-