public class LithoLifecycleProviderDelegate extends java.lang.Object implements LithoLifecycleProvider
LithoLifecycleProvider
implementation. Defines the standard state changes for a
Litho ComponentTree. A custom LithoLifecycleProvider implementation can change the lifecycle
state but delegate to this to handle the effects of the state change. See an example of how this
facilitates a custom lifecycle implementation in AOSPLithoLifecycleProvider
.Modifier and Type | Class and Description |
---|---|
static interface |
LithoLifecycleProviderDelegate.LifecycleTransitionStatus |
LithoLifecycleProvider.LithoLifecycle
Constructor and Description |
---|
LithoLifecycleProviderDelegate() |
Modifier and Type | Method and Description |
---|---|
void |
addListener(LithoLifecycleListener listener) |
LithoLifecycleProvider.LithoLifecycle |
getLifecycleStatus() |
void |
moveToLifecycle(LithoLifecycleProvider.LithoLifecycle newLifecycleState) |
void |
removeListener(LithoLifecycleListener listener) |
public void moveToLifecycle(LithoLifecycleProvider.LithoLifecycle newLifecycleState)
moveToLifecycle
in interface LithoLifecycleProvider
public LithoLifecycleProvider.LithoLifecycle getLifecycleStatus()
getLifecycleStatus
in interface LithoLifecycleProvider
public void addListener(LithoLifecycleListener listener)
addListener
in interface LithoLifecycleProvider
public void removeListener(LithoLifecycleListener listener)
removeListener
in interface LithoLifecycleProvider