SuggestedDeviceInfo.Builder


public final class SuggestedDeviceInfo.Builder


Builder for SuggestedDeviceInfo.

Summary

Public constructors

Builder(
    @NonNull String deviceDisplayName,
    @NonNull String routeId,
    int type
)

Constructor.

Public methods

@NonNull SuggestedDeviceInfo

Creates a new SuggestedDeviceInfo.

@NonNull SuggestedDeviceInfo.Builder

Sets the extras.

Public constructors

Builder

Added in 1.9.0-alpha01
public Builder(
    @NonNull String deviceDisplayName,
    @NonNull String routeId,
    int type
)

Constructor.

Parameters
@NonNull String deviceDisplayName

The display name.

@NonNull String routeId

The route ID.

int type

The route type.

Public methods

build

Added in 1.9.0-alpha01
public @NonNull 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.

setExtras

Added in 1.9.0-alpha01
public @NonNull SuggestedDeviceInfo.Builder setExtras(@NonNull 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 deepCopy to keep a mutable copy.

Throws
java.lang.NullPointerException

if the extras are null.