java.lang.Object | |
↳ | com.pdftron.demo.utils.LifecycleUtils |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
LifecycleUtils() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
static void |
runOnResume(LifecycleOwner owner, LifecycleCallback callback)
Ensures the function will only run when lifecycle owner is in a resumed state (e.g.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Ensures the function will only run when lifecycle owner is in a resumed state (e.g. not backgrounded) Otherwise it creates a listener to execute once resumed
owner | Lifecycle Owner |
---|---|
callback | Callback to execute on resume |