stateLimit

Limits the states of this lifecycle owner to the given value.

May only be set to null, State.CREATED and State.STARTED.

If set to:

If set to State.CREATED or State.STARTED's state changes are ignored if the parentLifecycleOwner's state is higher than the set value.

The initial value is null.