DeviceInfo.Builder
class DeviceInfo.Builder
Builder for DeviceInfo.
Summary
Public constructors |
|---|
Builder(@DeviceInfo.PlaybackType playbackType: Int)Creates the builder. |
Public functions |
|
|---|---|
DeviceInfo! |
build()Builds the |
DeviceInfo.Builder! |
@CanIgnoreReturnValueSets the maximum supported device volume. |
DeviceInfo.Builder! |
@CanIgnoreReturnValueSets the minimum supported device volume. |
DeviceInfo.Builder! |
@CanIgnoreReturnValueSets the |
Public constructors
Builder
Builder(@DeviceInfo.PlaybackType playbackType: Int)
Creates the builder.
| Parameters | |
|---|---|
@DeviceInfo.PlaybackType playbackType: Int |
The |
Public functions
setMaxVolume
@CanIgnoreReturnValue
fun setMaxVolume(maxVolume: @IntRange(from = 0) Int): DeviceInfo.Builder!
Sets the maximum supported device volume.
| Parameters | |
|---|---|
maxVolume: @IntRange(from = 0) Int |
The maximum device volume, or |
| Returns | |
|---|---|
DeviceInfo.Builder! |
This builder. |
setMinVolume
@CanIgnoreReturnValue
fun setMinVolume(minVolume: @IntRange(from = 0) Int): DeviceInfo.Builder!
Sets the minimum supported device volume.
The minimum will be set to 0 if not specified.
| Returns | |
|---|---|
DeviceInfo.Builder! |
This builder. |
setRoutingControllerId
@CanIgnoreReturnValue
fun setRoutingControllerId(routingControllerId: String?): DeviceInfo.Builder!
Sets the routing controller id of the associated MediaRouter2.RoutingController.
This id allows mapping this device information to a routing controller, which provides information about the media route and allows controlling its volume.
The set value must be null if playbackType is PLAYBACK_TYPE_LOCAL.
| Parameters | |
|---|---|
routingControllerId: String? |
The |
| Returns | |
|---|---|
DeviceInfo.Builder! |
This builder. |