| Modifier and Type | Field and Description |
|---|---|
protected double |
interval
The interval
|
protected double |
target
The target level
|
| Constructor and Description |
|---|
GradualVolumeTask(double interval,
double target)
Creates a new instance using the specified parameters.
|
| Modifier and Type | Method and Description |
|---|---|
void |
run() |
protected void |
shutdownTask()
Shuts down this task.
|
cancel, scheduledExecutionTimeprotected final double interval
protected final double target
public GradualVolumeTask(double interval,
double target)
interval - the partial volume level change to use for each step,
positive to increase the volume level, negative to
decrease it.target - the target volume level that will trigger a shutdown of
the task when reached.Copyright © 2022. All rights reserved.