public class MaterialTapTargetSequence
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
MaterialTapTargetSequence.SequenceCompleteListener
Interface definition for a callback to be invoked when a sequence completes.
|
Constructor and Description |
---|
MaterialTapTargetSequence() |
Modifier and Type | Method and Description |
---|---|
MaterialTapTargetSequence |
addPrompt(MaterialTapTargetPrompt prompt)
Add a prompt to the end of the sequence.
|
MaterialTapTargetSequence |
addPrompt(MaterialTapTargetPrompt prompt,
long milliseconds)
Add a show for time prompt to the end of the sequence.
|
MaterialTapTargetSequence |
addPrompt(PromptOptions promptOptions)
Add a prompt to the end of the sequence.
|
MaterialTapTargetSequence |
addPrompt(PromptOptions promptOptions,
long milliseconds)
Add a show for time prompt to the end of the sequence.
|
MaterialTapTargetSequence |
addPrompt(SequenceItem item)
Adds a sequence item to the end of the sequence.
|
SequenceItem |
get(int index)
Gets a prompt at a position in this sequence.
|
MaterialTapTargetSequence |
setSequenceCompleteListener(MaterialTapTargetSequence.SequenceCompleteListener listener)
Set the listener to listen with the action to call when the sequence ends
|
void |
show()
Start the sequence by showing the first prompt.
|
int |
size()
Get the number of prompts in this sequence.
|
@NonNull public MaterialTapTargetSequence setSequenceCompleteListener(@Nullable MaterialTapTargetSequence.SequenceCompleteListener listener)
listener
- the listener with the action to execute@NonNull public MaterialTapTargetSequence addPrompt(@Nullable MaterialTapTargetPrompt prompt)
prompt
- The prompt to add.@NonNull public MaterialTapTargetSequence addPrompt(@Nullable MaterialTapTargetPrompt prompt, long milliseconds)
prompt
- The prompt to add.milliseconds
- The number of milliseconds to show the prompt for.@NonNull public MaterialTapTargetSequence addPrompt(@NonNull PromptOptions promptOptions)
promptOptions
- The prompt to add.@NonNull public MaterialTapTargetSequence addPrompt(@NonNull PromptOptions promptOptions, long milliseconds)
promptOptions
- The prompt to add.milliseconds
- The number of milliseconds to show the prompt for.@NonNull public MaterialTapTargetSequence addPrompt(@NonNull SequenceItem item)
SequenceItem.addStateChanger(int)
.item
- The already created sequence item to add.public int size()
public SequenceItem get(int index)
index
- The prompt 0 based index.public void show()