| Modifier and Type | Field and Description |
|---|---|
protected Volume.VolumeControlType |
controlType
The type of volume control that is available
|
protected Double |
level
The current volume level as a value between
0.0 and 1.0. |
protected Boolean |
muted
Whether the receiver is muted, independent of the volume level
|
protected Double |
stepInterval
The allowed steps for changing volume
|
| Constructor and Description |
|---|
VolumeBuilder(Volume.VolumeControlType controlType,
Double stepInterval)
Creates a new instance using the specified parameters.
|
| Modifier and Type | Method and Description |
|---|---|
Volume |
build()
Builds a new
Volume instance based on the current values of
this builder. |
Volume.VolumeControlType |
controlType() |
Double |
level() |
Volume.VolumeBuilder |
level(Double level)
Sets the current volume level as a value between
0.0 and
1.0. |
Boolean |
muted() |
Volume.VolumeBuilder |
muted(Boolean muted)
Sets whether the receiver is muted, independent of the volume level.
|
Double |
stepInterval() |
String |
toString() |
@Nullable protected Volume.VolumeControlType controlType
@Nullable protected Double level
0.0 and 1.0.
1.0 is the maximum volume possible on the receiver or stream.@Nullable protected Boolean muted
public VolumeBuilder(@Nullable Volume.VolumeControlType controlType, @Nullable Double stepInterval)
controlType - the type of volume control that is available.stepInterval - the allowed steps for changing volume.@Nullable public Volume.VolumeControlType controlType()
@Nullable public Double level()
0.0 and
1.0.@Nonnull public Volume.VolumeBuilder level(@Nullable Double level)
0.0 and
1.0.level - the volume level to set.Volume.VolumeBuilder.@Nullable public Boolean muted()
@Nonnull public Volume.VolumeBuilder muted(@Nullable Boolean muted)
muted - the mute state to set.Volume.VolumeBuilder.public Volume build()
Volume instance based on the current values of
this builder.Volume instance.Copyright © 2022. All rights reserved.