Sign in Go Pro

Dependency Injection in Android using Kodein

Adding a Detail Activity

This lesson is for PRO members.

Upgrade today to get access to all the PRO lessons.

Unlock this lesson
Autoplay

Up next

Previous

About

On this lesson we will add a DetailActivity as a way to recap the complete process of creating an Activity scope, from beginning to end. We will highlight:
- How we need to inherit from InjectedActivity one more time to provide the Activity scope.
- How bindings for specific activities are delegated to child Activities.
- How we inject our photoId as part of the module construction in order to pass it to the presenter also on construction and be able to make it immutable there.
- How use cases can use repositories to coordinates different sources of data and applying caching policies.
- How to inject data source into the use case and both available data source implementations (in-memory and network) into it.

Instructor

Links

Comments

There are no comments on this lesson, start the conversation below ...

>
You need to go PRO to post comments.

Lessons in Dependency Injection in Android using Kodein