This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class CustomClass( | |
private val text: String, | |
private val lifecycleOwner: LifecycleOwner | |
): DefaultLifecycleObserver { | |
init { | |
lifecycleOwner.lifecycle.addObserver(this) | |
} | |
override fun onCreate(owner: LifecycleOwner) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Important: | |
You'll need to add these implentation in your gradle | |
implementation 'com.github.bumptech.glide:annotations:4.11.0' | |
implementation('com.github.bumptech.glide:okhttp3-integration:4.11.0'){ | |
exclude group: 'glide-parent' | |
} | |
*/ |