Generic Components

Certain elements of the UI can be fully customized via UI injection. It utilizes view adapter interfaces which you can implement and pass to GiniBank when configuring the SDK. These interfaces declare the contract the injected view has to fulfill and let the SDK ask for your view instance when needed.

Top navigation bar

To inject your own navigation bar view, implement the NavigationBarTopAdapter and pass it to GiniBank.setCaptureConfiguration(CaptureConfiguration(navigationBarTopAdapter = )). Then your view is displayed on all screens as the top navigation bar.

Bottom navigation bar

To enable your bottom navigation bar, pass true to GiniBank.setCaptureConfiguration(CaptureConfiguration(bottomNavigationBarEnabled = )).

The top navigation bar is still used, but its functionality is limited to showing the screen’s title and an optional close button. Inject a custom top navigation bar if your design requires it even if you enabled the bottom navigation bar.

Each screen has a slightly different bottom navigation bar because they contain screen specific call-to-action buttons. To inject your own views, implement each screen’s view adapter interface (for example, OnboardingNavigationBarBottomAdapter) and pass it to GiniBank (for example, GiniBank.setCaptureConfiguration(CaptureConfiguration(onboardingNavigationBarBottomAdapter = ))). Your view is then displayed on the relevant screen.

Â