-
@RequiresApi(value = Build.VERSION_CODES.LOLLIPOP) public class Actions
Utilities for creating Action sequences.
-
-
Method Summary
Modifier and Type Method Description static BaseActiontogether(@NonNull() Array<BaseAction> actions)Creates a BaseAction that executes all the child actionstogether, at the same time, and completes once all of them arecompleted. static BaseActionsequence(@NonNull() Array<BaseAction> actions)Creates a BaseAction that executes all the child actionsin sequence, waiting for the first to complete, then going on withthe second and so on, finally completing when all are completed. static BaseActiontimeout(long timeoutMillis, @NonNull() BaseAction action)Creates a BaseAction that completes as normal, but is alsoforced to complete if the given timeout is reached, by calling abort. -
-
Method Detail
-
together
@NonNull() static BaseAction together(@NonNull() Array<BaseAction> actions)
Creates a BaseAction that executes all the child actionstogether, at the same time, and completes once all of them arecompleted.
- Parameters:
actions- input actions
-
sequence
@NonNull() static BaseAction sequence(@NonNull() Array<BaseAction> actions)
Creates a BaseAction that executes all the child actionsin sequence, waiting for the first to complete, then going on withthe second and so on, finally completing when all are completed.
- Parameters:
actions- input actions
-
timeout
@NonNull() static BaseAction timeout(long timeoutMillis, @NonNull() BaseAction action)
Creates a BaseAction that completes as normal, but is alsoforced to complete if the given timeout is reached, by calling abort.
- Parameters:
timeoutMillis- timeout in millisecondsaction- action
-
-
-
-