ApplicationMetadata

public class ApplicationMetadata extends Object
implements Parcelable

Cast application metadata.

Contains metadata about the receiver application, supplied in Cast.ApplicationConnectionResult.

Inherited Constant Summary

Public Method Summary

boolean
areNamespacesSupported(List<String> namespaces)
Tests if the application supports all of the given namespaces.
boolean
String
getApplicationId()
Returns the application's ID.
List<WebImage>
getImages()
Returns the list of image metadata associated with the receiver application.
String
getName()
Returns the application's human-readable name.
String
getSenderAppIdentifier()
If there is an Android sender application that is the counterpart to the receiver application, this method returns the unique identifier of that sender application in the Google Play Store.
List<String>
getSupportedNamespaces()
Returns an unmodifiable list of namespaces supported by the application.
int
boolean
isNamespaceSupported(String namespace)
Tests if the application supports the given namespace.
String
void
writeToParcel(Parcel out, int flags)

Inherited Method Summary

Public Methods

public boolean areNamespacesSupported (List<String> namespaces)

Tests if the application supports all of the given namespaces. Namespaces are defined by a string and must begin with urn:x-cast: followed by any string. For example, urn:x-cast:com.example.cast.mynamespace.

Parameters
namespaces The list of namespaces.

public boolean equals (Object obj)

public String getApplicationId ()

Returns the application's ID.

public List<WebImage> getImages ()

Returns the list of image metadata associated with the receiver application. Images metadata is represented as a WebImage instance, which contains URL and measurement of the image. Returns an empty list if there are no images.

public String getName ()

Returns the application's human-readable name.

public String getSenderAppIdentifier ()

If there is an Android sender application that is the counterpart to the receiver application, this method returns the unique identifier of that sender application in the Google Play Store. Returns null if no such sender application.

public List<String> getSupportedNamespaces ()

Returns an unmodifiable list of namespaces supported by the application. Namespaces are defined by a string and must begin with urn:x-cast: followed by any string. For example, urn:x-cast:com.example.cast.mynamespace.

public int hashCode ()

public boolean isNamespaceSupported (String namespace)

Tests if the application supports the given namespace. Namespaces are defined by a string and must begin with urn:x-cast: followed by any string. For example, urn:x-cast:com.example.cast.mynamespace.

Parameters
namespace The namespace.

public String toString ()

public void writeToParcel (Parcel out, int flags)