-
- All Implemented Interfaces:
public final class PropertyStackKt
-
-
Method Summary
Modifier and Type Method Description final static BooleanbackPressPop(ValueSubject<List<ViewGenerator>> $self)Like pop, but allows the ViewGenerator to interrupt the action in HasBackAction. final static BooleanbackPressDismiss(ValueSubject<List<ViewGenerator>> $self)Like dismiss, but allows the ViewGenerator to interrupt the action in HasBackAction. final static Unitpush(ValueSubject<List<ViewGenerator>> $self, ViewGenerator element)Adds an element to the top of the stack and emits an event. final static Unitswap(ValueSubject<List<ViewGenerator>> $self, ViewGenerator element)Swaps the top element of the stack for this one and emits an event. final static Booleanpop(ValueSubject<List<ViewGenerator>> $self)Removes the top element of the stack, as long as there will be at least one element left afterwards. final static Booleandismiss(ValueSubject<List<ViewGenerator>> $self)Removes the top element of the stack. final static UnitpopToPredicate(ValueSubject<List<ViewGenerator>> $self, Function1<ViewGenerator, Boolean> predicate)Removes all elements going back to an element matching predicate. final static Unitroot(ValueSubject<List<ViewGenerator>> $self)Removes all elements but the first. final static Unitreset(ValueSubject<List<ViewGenerator>> $self, ViewGenerator element)Clears out the entire stack, replacing it with a single element. -
-
Method Detail
-
backPressPop
final static Boolean backPressPop(ValueSubject<List<ViewGenerator>> $self)
Like pop, but allows the ViewGenerator to interrupt the action in HasBackAction.
-
backPressDismiss
final static Boolean backPressDismiss(ValueSubject<List<ViewGenerator>> $self)
Like dismiss, but allows the ViewGenerator to interrupt the action in HasBackAction.
-
push
final static Unit push(ValueSubject<List<ViewGenerator>> $self, ViewGenerator element)
Adds an element to the top of the stack and emits an event.
-
swap
final static Unit swap(ValueSubject<List<ViewGenerator>> $self, ViewGenerator element)
Swaps the top element of the stack for this one and emits an event.
-
pop
final static Boolean pop(ValueSubject<List<ViewGenerator>> $self)
Removes the top element of the stack, as long as there will be at least one element left afterwards.
-
dismiss
final static Boolean dismiss(ValueSubject<List<ViewGenerator>> $self)
Removes the top element of the stack.
-
popToPredicate
final static Unit popToPredicate(ValueSubject<List<ViewGenerator>> $self, Function1<ViewGenerator, Boolean> predicate)
Removes all elements going back to an element matching predicate.
-
root
final static Unit root(ValueSubject<List<ViewGenerator>> $self)
Removes all elements but the first.
-
reset
final static Unit reset(ValueSubject<List<ViewGenerator>> $self, ViewGenerator element)
Clears out the entire stack, replacing it with a single element.
-
-
-
-