java.lang.Object | |
↳ | com.google.android.gms.cast.CastDevice |
An object representing a Cast receiver device.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | CAPABILITY_AUDIO_IN | Audio-input device capability. | |||||||||
int | CAPABILITY_AUDIO_OUT | Audio-output device capability. | |||||||||
int | CAPABILITY_MULTIZONE_GROUP | Device capability flag that indicates the device represents a multi-zone group. | |||||||||
int | CAPABILITY_VIDEO_IN | Video-input device capability. | |||||||||
int | CAPABILITY_VIDEO_OUT | Video-output device capability. |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Gets the unique ID for the device.
| |||||||||||
Gets the device's version.
| |||||||||||
Gets the friendly name for the device.
| |||||||||||
Returns the CastDevice from
extras , otherwise null . | |||||||||||
Returns a best-fit icon for the requested icon size.
| |||||||||||
Returns a list of all of the device's icons.
| |||||||||||
Gets the IPv4 address of the device.
| |||||||||||
Gets the model name for the device.
| |||||||||||
Gets the device's service port.
| |||||||||||
Tests if the device supports a given set of capabilities.
| |||||||||||
Tests if the device supports a given capability.
| |||||||||||
Checks if the device has any icons.
| |||||||||||
Overridden to return a hashcode of the device ID.
| |||||||||||
Returns
true if this CastDevice is on the local network. | |||||||||||
Tests if this device refers to the same physical Cast device as
castDevice . | |||||||||||
Writes the CastDevice to
bundle . | |||||||||||
Returns a string representation of the device.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Audio-input device capability.
Audio-output device capability.
Device capability flag that indicates the device represents a multi-zone group.
Video-input device capability.
Video-output device capability.
Parameters | |
---|---|
obj |
Object
|
Returns | |
---|---|
boolean |
Gets the unique ID for the device.
Returns | |
---|---|
String |
Gets the device's version.
Returns | |
---|---|
String |
Gets the friendly name for the device.
Returns | |
---|---|
String |
Returns a best-fit icon for the requested icon size.
Parameters | |
---|---|
preferredWidth |
int
|
preferredHeight |
int
|
Returns | |
---|---|
WebImage |
Returns a list of all of the device's icons. If there are no images, returns an empty list.
Returns | |
---|---|
List<WebImage> |
Gets the IPv4 address of the device.
Returns | |
---|---|
Inet4Address |
Gets the model name for the device.
Returns | |
---|---|
String |
Gets the device's service port.
Returns | |
---|---|
int |
Tests if the device supports a given set of capabilities.
Parameters | |
---|---|
capabilities |
int :
The set capabilities for which to test. The expected value is one or more
of the following constants: CAPABILITY_AUDIO_IN ,
CAPABILITY_AUDIO_OUT , CAPABILITY_VIDEO_IN , or
CAPABILITY_VIDEO_OUT .
|
Returns | |
---|---|
boolean |
Tests if the device supports a given capability.
Parameters | |
---|---|
capability |
int :
The capability to test for. The expected value is one of the following
constants: CAPABILITY_AUDIO_IN , CAPABILITY_AUDIO_OUT ,
CAPABILITY_VIDEO_IN , or CAPABILITY_VIDEO_OUT .
|
Returns | |
---|---|
boolean |
Checks if the device has any icons.
Returns | |
---|---|
boolean |
Overridden to return a hashcode of the device ID.
Returns | |
---|---|
int |
Returns true
if this CastDevice
is on the local network.
Returns | |
---|---|
boolean |
Tests if this device refers to the same physical Cast device as castDevice
. Two
CastDevice
s are considered to refer to the same physical device if they have the same
device ID.
Parameters | |
---|---|
castDevice |
CastDevice :
The CastDevice to test. |
Returns | |
---|---|
boolean |
true if the device IDs are the same, else false .
|
Writes the CastDevice to bundle
.
Parameters | |
---|---|
bundle |
Bundle
|
Returns a string representation of the device.
Returns | |
---|---|
String |
Parameters | |
---|---|
out |
Parcel
|
flags |
int
|