ApplicationMetadata

public classApplicationMetadataextendsObject
implementsParcelable

Cast application metadata.

Contains metadata about the receiver application, supplied inCast.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.
String
getIconUrl()
Returns the application image that is set in Cast Developer Console.
List<WebImage>
getImages()
This method is deprecated. Use getIconUrl()instead.
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(Stringnamespace)
Tests if the application supports the given namespace.
void
setIconUrl(StringiconUrl)
Sets the application image URL.
String
void
writeToParcel(Parcelout, int flags)

Inherited Method Summary

Public Methods

public booleanareNamespacesSupported(List<String> namespaces)

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

Parameters
namespaces The list of namespaces.

public booleanequals(Objectobj)

publicStringgetApplicationId()

Returns the application's ID.

publicStringgetIconUrl()

Returns the application image that is set in Cast Developer Console.

publicList<WebImage> getImages()

This method is deprecated.
UsegetIconUrl() instead.

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

publicStringgetName()

Returns the application's human-readable name.

publicStringgetSenderAppIdentifier()

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.

publicList<String> getSupportedNamespaces()

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

public inthashCode()

public booleanisNamespaceSupported(Stringnamespace)

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

Parameters
namespace The namespace.

public voidsetIconUrl(StringiconUrl)

Sets the application image URL.

publicStringtoString()

public voidwriteToParcel(Parcelout, int flags)