Stay organized with collections Save and categorize content based on your preferences.
An object representing a Cast receiver device.
Constant Summary Inherited Constant Summary From interface android.os.Parcelable int CONTENTS_FILE_DESCRIPTOR int PARCELABLE_WRITE_RETURN_VALUE Public Method Summary Inherited Method Summary From class java.lang.Object Objectclone()
boolean voidfinalize()
final Class<?>getClass()
inthashCode()
final voidnotify()
final voidnotifyAll()
StringtoString()
final voidwait(long arg0, int arg1)
final voidwait(long arg0)
final voidwait()
From interface android.os.Parcelable abstract intdescribeContents()
abstract void writeToParcel(
Parcelarg0, int arg1)
Constants public static final int CAPABILITY_AUDIO_INAudio-input device capability.
Constant Value: 8
public static final int CAPABILITY_AUDIO_OUTAudio-output device capability.
Constant Value: 4
public static final int CAPABILITY_MULTIZONE_GROUPDevice capability flag that indicates the device represents a multi-zone group.
Constant Value: 32
public static final int CAPABILITY_VIDEO_INVideo-input device capability.
Constant Value: 2
public static final int CAPABILITY_VIDEO_OUTVideo-output device capability.
Constant Value: 1
Public Methods public boolean equals (Object obj) public String getDeviceId ()Gets the unique ID for the device.
public String getDeviceVersion ()Gets the device's version.
public String getFriendlyName ()Gets the friendly name for the device.
Returns the CastDevice
from extras
, otherwise null
.
Returns a best-fit icon for the requested icon size.
public List<WebImage> getIcons ()Returns a list of all of the device's icons. If there are no images, returns an empty list.
public Inet4Address getIpAddress ()This method is deprecated.
Use getInetAddress()
instead.
Gets the IPv4 address of the device. If device is on an IPv6-only network, this method will return null.
public String getModelName ()Gets the model name for the device.
public int getServicePort ()Gets the device's service port.
public boolean hasCapabilities (int[] capabilities)Tests if the device supports a given set of capabilities.
public boolean hasCapability (int capability)Tests if the device supports a given capability.
public boolean hasIPv4Address () public boolean hasIPv6Address () public boolean hasIcons ()Checks if the device has any icons.
public int hashCode ()Overridden to return a hashcode of the device ID.
public boolean isOnLocalNetwork ()Returns true
if this CastDevice
is on the local network.
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.
true
if the device IDs are the same, else false
.Returns a string representation of the device.
public void writeToParcel (Parcel out, int flags)Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["`CastDevice` represents a Cast receiver device, providing access to its information like name, ID, capabilities, and icons."],["It offers methods to check device capabilities, network status, and compare devices based on their IDs."],["Developers can retrieve device details such as friendly name, model, IP address, and service port using provided methods."],["The class includes constants representing different device capabilities, like audio/video input/output and multi-zone grouping."],["`CastDevice` is Parcelable, allowing it to be passed between components or processes."]]],[]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.3