Package org.robolectric.shadows
Class PlaybackInfoBuilder
- java.lang.Object
-
- org.robolectric.shadows.PlaybackInfoBuilder
-
public class PlaybackInfoBuilder extends Object
Builder forMediaController.PlaybackInfo
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MediaController.PlaybackInfo
build()
static PlaybackInfoBuilder
newBuilder()
PlaybackInfoBuilder
setAudioAttributes(AudioAttributes audioAttrs)
PlaybackInfoBuilder
setCurrentVolume(int currentVolume)
PlaybackInfoBuilder
setMaxVolume(int maxVolume)
PlaybackInfoBuilder
setVolumeControl(int volumeControl)
PlaybackInfoBuilder
setVolumeType(int volumeType)
-
-
-
Method Detail
-
newBuilder
public static PlaybackInfoBuilder newBuilder()
-
setVolumeType
public PlaybackInfoBuilder setVolumeType(int volumeType)
-
setVolumeControl
public PlaybackInfoBuilder setVolumeControl(int volumeControl)
-
setMaxVolume
public PlaybackInfoBuilder setMaxVolume(int maxVolume)
-
setCurrentVolume
public PlaybackInfoBuilder setCurrentVolume(int currentVolume)
-
setAudioAttributes
public PlaybackInfoBuilder setAudioAttributes(AudioAttributes audioAttrs)
-
build
public MediaController.PlaybackInfo build()
-
-