Package org.robolectric.shadows
Class AudioDeviceInfoBuilder
java.lang.Object
org.robolectric.shadows.AudioDeviceInfoBuilder
Builder for
AudioDeviceInfo.-
Method Summary
Modifier and TypeMethodDescriptionbuild()static AudioDeviceInfoBuildersetProfiles(List<AudioProfile> profiles) Sets theprofiles.setType(int type) Sets the device type.
-
Method Details
-
newBuilder
-
setType
Sets the device type.The default is
AudioDeviceInfo.TYPE_BUILTIN_SPEAKER.- Parameters:
type- The device type. The possible values are the constants defined as AudioDeviceInfo.AudioDeviceType
-
setProfiles
@RequiresApi(31) @CanIgnoreReturnValue public AudioDeviceInfoBuilder setProfiles(List<AudioProfile> profiles) Sets theprofiles.- Parameters:
profiles- The list ofprofiles.
-
build
-