Builder


class Builder
kotlin.Any
   ↳ android.media.SuggestedDeviceInfo.Builder

Builder for SuggestedDeviceInfo.

Summary

Public constructors
Builder(deviceDisplayName: String, routeId: String, type: Int)

Constructor.

Public methods
SuggestedDeviceInfo

Creates a new SuggestedDeviceInfo.

SuggestedDeviceInfo.Builder
setExtras(extras: Bundle)

Sets the extras.

Public constructors

Builder

Builder(
    deviceDisplayName: String,
    routeId: String,
    type: Int)

Constructor.

Parameters
deviceDisplayName String: The display name.
This value cannot be null.
routeId String: The route ID.
This value cannot be null.
type Int: The route type.
Value is one of the following:

Public methods

build

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

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.