SuggestedDeviceInfo.Builder


class SuggestedDeviceInfo.Builder


Builder for SuggestedDeviceInfo.

Summary

Public constructors

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

Constructor.

Public functions

SuggestedDeviceInfo

Creates a new SuggestedDeviceInfo.

SuggestedDeviceInfo.Builder
setExtras(extras: Bundle)

Sets the extras.

Public constructors

Builder

Added in 1.9.0-alpha01
Builder(deviceDisplayName: String, routeId: String, type: Int)

Constructor.

Parameters
deviceDisplayName: String

The display name.

routeId: String

The route ID.

type: Int

The route type.

Public functions

build

Added in 1.9.0-alpha01
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 1.9.0-alpha01
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 deepCopy to keep a mutable copy.

Throws
java.lang.NullPointerException

if the extras are null.