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.
|
MaterialTapTargetSequence |
dismiss()
Removes the currently displayed prompt in the sequence from view using the dismiss action and stops the sequence
from continuing.
|
MaterialTapTargetSequence |
finish()
Removes the currently displayed prompt in the sequence from view using the finish action and stops the sequence
from continuing.
|
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
|
MaterialTapTargetSequence |
show()
Start the sequence by showing the first prompt.
|
MaterialTapTargetSequence |
showFromIndex(int index)
Shows or continues to show this sequence from the prompt at the index supplied.
|
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()
@NonNull public SequenceItem get(int index)
index - The prompt 0 based index.@NonNull public MaterialTapTargetSequence show()
@NonNull public MaterialTapTargetSequence finish()
@NonNull public MaterialTapTargetSequence dismiss()
@NonNull public MaterialTapTargetSequence showFromIndex(int index)
index - The index to show from.