Factory Method Pattern With Kotlin in android

Prologue

I am trying to become a better Android Developer. I am at a stage where I am studying the fragments API. But, my approach to learning Android is a little bit different. I see videos and tutorials and courses: all have been made with Java. I have fallen in love with kotlin.When I follow those courses, I look for ways to do the same things with Kotlin. Here is a common development pattern recommended by the google API documentation when dealing with fragments: The Factory Method Pattern. And here I will explore how to implement that pattern in Kotlin. Read more “Factory Method Pattern With Kotlin in android”