Skip to content

Instantly share code, notes, and snippets.

@chiragthummar
Created March 13, 2025 10:07

Revisions

  1. chiragthummar created this gist Mar 13, 2025.
    23 changes: 23 additions & 0 deletions MainActivity.kt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,23 @@
    MyEventListener { _, event ->
    when (event) {
    Lifecycle.Event.ON_CREATE -> {
    }

    Lifecycle.Event.ON_START -> {
    }

    Lifecycle.Event.ON_RESUME -> {
    }

    Lifecycle.Event.ON_PAUSE -> {
    }

    Lifecycle.Event.ON_STOP -> {
    }

    Lifecycle.Event.ON_DESTROY -> {
    }

    else -> {}
    }
    }