Hello <#CHJP9K00L|splitties> any idea about `start...
# splitties
s
Hello #splitties any idea about
startActivityForResult
? I think is not implemented yet
l
Hello @Sergio Crespo Toubes What are you looking for exactly?
s
i am migrating from anko and i had something like
startActivityForResult<Activity>(requestCode,extra)
l
I see, can you open an issue with the example on GitHub? I'll consider adding it after the KotlinConf week.
👍🏻 1
i
I would like to add my 5 cents. From my point of view, it is really not necessary to wrap ugly Activity lifecycle events and messages in Splitties DSL / UI part of code. It is the responsibility of some other framework (for example, I would suggest Conductor for all that stuff).
l
But this thread is not about lifecycle events!? @ispbox
i
@louiscad You are right - startActivityForResult is more related to Intents, rather than Activity lifecycle. But that's why I added "events and messages" 🙂 I think that all activity-related stuff (events, intents) should be separated from UI (Splitties DSL). You can have any helpers in other Splits, that's ok. My concern was about weak responsibility segregation in Anko, that was really tied to Activities and Fragments. I appreciate that Splitties DSL goes another way :)
l
Splitties try to be like: do your own class, use interfaces if it fits, and use it from wherever you want, even all at once if needed.