android / android/architecture-samples

Why in Kotlin MVP example there is not takeView and dropView methods in Presenter?

Open
#537 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
45.8k
Forks
11.9k
PR merge metrics
No merged PRs in 30d

Description

Hi,

I have noticed that in Kotlin MVP example there is not `takeView() `and `dropView()` methods, there is only `start()` method wherein Java example there are both of these methods. Could someone please explain to me why is it like this?

Branch is [todo-mvp-kotlin](https://github.com/googlesamples/android-architecture/tree/todo-mvp-kotlin/)

Sincerely,

Egor

Contributor guide

Open the contributing guide

Research direction

Read the Presenter implementation in the todo-mvp-kotlin branch and compare its start() lifecycle with the Java example's takeView() and dropView() methods. Done means documenting why the Kotlin example uses a different lifecycle approach, based on that comparison.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile-dev
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.