Added in API level 36.1
Builder
class Builder
| kotlin.Any | |
| ↳ | android.media.SuggestedDeviceInfo.Builder |
Builder for SuggestedDeviceInfo.
Summary
| Public constructors | |
|---|---|
|
Constructor. |
|
| Public methods | |
|---|---|
| SuggestedDeviceInfo |
build()Creates a new SuggestedDeviceInfo. |
| SuggestedDeviceInfo.Builder |
Sets the |
Public constructors
Builder
Added in API level 36.1
Builder(
deviceDisplayName: String,
routeId: String,
type: Int)
Constructor.
Public methods
build
Added in API level 36.1
fun build(): SuggestedDeviceInfo
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.
setExtras
Added in API level 36.1
fun setExtras(extras: Bundle): SuggestedDeviceInfo.Builder
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. |
| Return | |
|---|---|
SuggestedDeviceInfo.Builder |
This value cannot be null. |
| Exceptions | |
|---|---|
java.lang.NullPointerException |
if the extras are null. |