Skip to content

Instantly share code, notes, and snippets.

@arkivanov
Created July 28, 2020 11:35
Show Gist options
  • Select an option

  • Save arkivanov/8a07f766306534ff64d000b7b64698c3 to your computer and use it in GitHub Desktop.

Select an option

Save arkivanov/8a07f766306534ff64d000b7b64698c3 to your computer and use it in GitHub Desktop.
KittenComponent public API
internal class KittenComponent internal constructor(dataSource: KittenDataSource) {
constructor() : this(KittenDataSource())
fun onViewCreated(view: KittenView) { /* ... */ }
fun onStart() { /* ... */ }
fun onStop() { /* ... */ }
fun onViewDestroyed() { /* ... */ }
fun onDestroy() { /* ... */ }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment