Interface UiResult<R>
- Type Parameters:
R- the answer type
- All Known Implementing Classes:
UiResult.Closed, UiResult.Completed
Outcome of a shown intent.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordThe intent ended without an answer.static final recordThe player answered. -
Method Summary
Modifier and TypeMethodDescriptiondefault booleanWhether an answer was submitted.value()The value.
-
Method Details
-
isCompleted
default boolean isCompleted()Whether an answer was submitted. -
value
R value()The value. @throws IllegalStateException ifUiResult.Closed
-