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.BuilderBuilder for |
Public methods |
|
|---|---|
@NonNull String |
Returns the display name of the suggested device. |
@NonNull Bundle |
Returns the |
@NonNull String |
Returns the id of the suggested device. |
int |
getType()Returns the |
Public methods
getDeviceDisplayName
public @NonNull String getDeviceDisplayName()
Returns the display name of the suggested device.
getExtras
public @NonNull Bundle getExtras()
Returns the Bundle of the suggested device set via setExtras.
getRouteId
public @NonNull String getRouteId()
Returns the id of the suggested device.
getType
public int getType()
Returns the MediaRouter.RouteInfo.DeviceType of the suggested device.