public class

MediaRouteDevice

extends Object
java.lang.Object
   ↳ org.ocast.mediaroute.MediaRouteDevice

Class Overview

Defines a device representing a media route.

Summary

Constants
String EXTRA_DEVICE
Fields
public static final CREATOR
Public Constructors
MediaRouteDevice(String uuid, String friendlyName, String manufacturer, String modelName, URI urlBase)
MediaRouteDevice(DiscoveredDevice dd)
Protected Constructors
MediaRouteDevice(Parcel in)
Public Methods
int describeContents()
URI getDialURI()
Retrieve the Dial application URL found in tag URLBase or the one provided to fromDeviceDescription if it comes from a header.
String getFriendlyName()
Retrieve the device friendly name found in tag
String getManufacturer()
Retrieve the manufacturer found in found in tag
String getModelName()
Retrieve the modelName found in tag
String getUuid()
Retrieve the UUID found in tag
void writeToParcel(Parcel dest, int flags)
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String EXTRA_DEVICE

Constant Value: "org.ocast.mediaroutedevice.extra.DEVICE"

Fields

public static final CREATOR

Public Constructors

public MediaRouteDevice (String uuid, String friendlyName, String manufacturer, String modelName, URI urlBase)

public MediaRouteDevice (DiscoveredDevice dd)

Protected Constructors

protected MediaRouteDevice (Parcel in)

Public Methods

public int describeContents ()

public URI getDialURI ()

Retrieve the Dial application URL found in tag URLBase or the one provided to fromDeviceDescription if it comes from a header.

Returns
  • a URI object representing the Dial application URL

public String getFriendlyName ()

Retrieve the device friendly name found in tag

Returns
  • friendly name

public String getManufacturer ()

Retrieve the manufacturer found in found in tag

public String getModelName ()

Retrieve the modelName found in tag

public String getUuid ()

Retrieve the UUID found in tag

Returns
  • the uuid value without uuid: prefix

public void writeToParcel (Parcel dest, int flags)