getViewAfterStateUpdate

open fun getViewAfterStateUpdate(context: ComponentContext, component: Component, stateUpdater: StateUpdatesTestHelper.StateUpdater, layoutThreadShadowLooper: ShadowLooper): LithoView

Call a state update as specified in performStateUpdate on the component and return the updated view.

Return

the updated LithoView after the state update was applied

Parameters

context

context

component

the component to update

stateUpdater

implementation of StateUpdater that triggers the state update

layoutThreadShadowLooper

shadow looper to post messages to the main thread


Returns a LithoView after all outstanding asynchronous state updates are performed.

Return

the updated LithoView after the state update was applied

Parameters

context

context

component

the component to update


Call a state update as specified in performStateUpdate on the component and return the updated view.

Return

the updated LithoView after the state update was applied

Parameters

context

context

component

the component to update

stateUpdater

implementation of StateUpdater that triggers the state update


open fun getViewAfterStateUpdate(context: ComponentContext, component: Component, stateUpdater: StateUpdatesTestHelper.StateUpdater, incrementalMountEnabled: Boolean, visibilityProcessingEnabled: Boolean): LithoView

Call a state update as specified in performStateUpdate on the component and return the updated view with the option to incrementally mount.

Return

the updated LithoView after the state update was applied

Parameters

context

context

component

the component to update

stateUpdater

implementation of StateUpdater that triggers the state update

incrementalMountEnabled

whether or not to enable incremental mount for the component


open fun getViewAfterStateUpdate(context: ComponentContext, component: Component, stateUpdater: StateUpdatesTestHelper.StateUpdater, layoutThreadShadowLooper: ShadowLooper, incrementalMountEnabled: Boolean, visibilityProcessingEnabled: Boolean): LithoView

Call a state update as specified in performStateUpdate on the component and return the updated view with the option to incrementally mount.

Return

the updated LithoView after the state update was applied

Parameters

context

context

component

the component to update

stateUpdater

implementation of StateUpdater that triggers the state update

layoutThreadShadowLooper

shadow looper to post messages to the main thread

incrementalMountEnabled

whether or not to enable incremental mount for the component


open fun getViewAfterStateUpdate(context: ComponentContext, component: Component, stateUpdater: StateUpdatesTestHelper.StateUpdater, loopers: Array<ShadowLooper>, incrementalMountEnabled: Boolean, visibilityProcessingEnabled: Boolean): LithoView

Call a state update as specified in performStateUpdate on the component and return the updated view with the option to incrementally mount.

Return

the updated LithoView after the state update was applied

Parameters

context

context

component

the component to update

stateUpdater

implementation of StateUpdater that triggers the state update

loopers

shadow loopers to post messages to the main thread, run in the same order they are specified

incrementalMountEnabled

whether or not to enable incremental mount for the component