SuggestedDeviceInfo


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

Builder for SuggestedDeviceInfo.

Public functions

String

Returns the display name of the suggested device.

Bundle

Returns the Bundle of the suggested device set via setExtras.

String

Returns the id of the suggested device.

Int

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

Public functions

getDeviceDisplayName

Added in 1.9.0-alpha01
fun getDeviceDisplayName(): String

Returns the display name of the suggested device.

getExtras

Added in 1.9.0-alpha01
fun getExtras(): Bundle

Returns the Bundle of the suggested device set via setExtras.

getRouteId

Added in 1.9.0-alpha01
fun getRouteId(): String

Returns the id of the suggested device.

getType

Added in 1.9.0-alpha01
fun getType(): Int

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