SuggestedDeviceInfo


public final class SuggestedDeviceInfo


Allows applications to suggest routes to the user (for example, in the System UI Output Switcher).

Suggested devices are used to transfer the current media session from one device to another.

Summary

Nested types

public final class SuggestedDeviceInfo.Builder

Builder for SuggestedDeviceInfo.

Public methods

@NonNull String

Returns the display name of the suggested device.

@NonNull Bundle

Returns the Bundle of the suggested device set via setExtras.

@NonNull String

Returns the id of the suggested device.

int

Returns the MediaRouter.RouteInfo.DeviceType of the suggested device.

Public methods

getDeviceDisplayName

Added in 1.9.0-alpha01
public @NonNull String getDeviceDisplayName()

Returns the display name of the suggested device.

getExtras

Added in 1.9.0-alpha01
public @NonNull Bundle getExtras()

Returns the Bundle of the suggested device set via setExtras.

getRouteId

Added in 1.9.0-alpha01
public @NonNull String getRouteId()

Returns the id of the suggested device.

getType

Added in 1.9.0-alpha01
public int getType()

Returns the MediaRouter.RouteInfo.DeviceType of the suggested device.