amar_1995

    amar_1995

    2 years ago
    Is there working sample/example of how to use
    onActive
    onCommit
    onDispose
    . I read the sample provided by google, yet not able to figure out how to use it in activity lifecycle. Can anyone explain with proper example how to use dispose with onActive and onCommit.
    Adam Powell

    Adam Powell

    2 years ago
    What are you trying to do? These have nothing to do with the activity lifecycle, though the activity lifecycle may drive parts of composition that will then lead to these being run.
    amar_1995

    amar_1995

    2 years ago
    Ohh okay
    Adam Powell

    Adam Powell

    2 years ago
    think of onCommit/onDispose as being more like onAttachedToWindow/onDetachedFromWindow for views