java.lang.Object | |
↳ | com.google.android.gms.cast.CastDevice |
An object representing a Cast receiver device.
[Expand]
Inherited Constants | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
![]()
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CREATOR |
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.
| |||||||||||
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 | |||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||||||||||||||||||||||||
![]() |
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. If there are no images, returns an empty list.
Gets the IPv4 address of the device.
Gets the model name for the device.
Gets the device's service port.
Checks if the device has any icons.
Overridden to return a hashcode of the device ID.
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.
castDevice | The CastDevice to test. |
---|
true
if the device IDs are the same, else false
.
Writes the CastDevice to bundle
.
Returns a string representation of the device.