public class

ApplicationMetadata

extends Object
implements Parcelable
java.lang.Object
   ↳ com.google.android.gms.cast.ApplicationMetadata

Class Overview

Cast application metadata.

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

Summary

[Expand]
Inherited Constants
From interface android.os.Parcelable
Public Methods
boolean areNamespacesSupported(List<String> namespaces)
Tests if the application supports all of the given namespaces.
boolean equals(Object obj)
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 hashCode()
boolean isNamespaceSupported(String namespace)
Tests if the application supports the given namespace.
String toString()
void writeToParcel(Parcel out, int flags)
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

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 List: The list of namespaces.
Returns
boolean

public boolean equals (Object obj)

Parameters
obj Object
Returns
boolean

public String getApplicationId ()

Returns the application's ID.

Returns
String

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.

Returns
List<WebImage>

public String getName ()

Returns the application's human-readable name.

Returns
String

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.

Returns
String

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.

Returns
List<String>

public int hashCode ()

Returns
int

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 String: The namespace.
Returns
boolean

public String toString ()

Returns
String

public void writeToParcel (Parcel out, int flags)

Parameters
out Parcel
flags int