SuggestedDeviceInfo.Builder
public
static
final
class
SuggestedDeviceInfo.Builder
extends Object
java.lang.Object | |
↳ | android.media.SuggestedDeviceInfo.Builder |
Builder for SuggestedDeviceInfo
.
Summary
Public constructors | |
---|---|
Builder(String deviceDisplayName, String routeId, int type)
Constructor. |
Public methods | |
---|---|
SuggestedDeviceInfo
|
build()
Creates a new SuggestedDeviceInfo. |
SuggestedDeviceInfo.Builder
|
setExtras(Bundle extras)
Sets the |
Inherited methods | |
---|---|
Public constructors
Builder
public Builder (String deviceDisplayName, String routeId, int type)
Constructor.
Public methods
build
public SuggestedDeviceInfo build ()
Creates a new SuggestedDeviceInfo. The device display name, route ID, and type must be
set. The extras cannot be null, but default to an empty Bundle
.
Returns | |
---|---|
SuggestedDeviceInfo |
setExtras
public SuggestedDeviceInfo.Builder setExtras (Bundle extras)
Sets the extras
.
The default value is an empty Bundle
.
Do not mutate the given Bundle
after passing it to this method. You can use
Bundle.deepCopy()
to keep a mutable copy.
Parameters | |
---|---|
extras |
Bundle : This value cannot be null . |
Returns | |
---|---|
SuggestedDeviceInfo.Builder |
This value cannot be null . |
Throws | |
---|---|
NullPointerException |
if the extras are null. |