public enum CastDeviceCapability extends Enum<CastDeviceCapability>
| Enum Constant and Description |
|---|
AUDIO_IN
The cast device can provide audio media
|
AUDIO_OUT
The cast device can play audio media
|
DEV_MODE
The cast device supports or is in (?)
|
MULTIZONE_GROUP
The cast device supports multizone groups
|
NONE
The cast device has no known capabilities
|
VIDEO_IN
The cast device can provide video media
|
VIDEO_OUT
The cast device can play video media
|
| Modifier and Type | Method and Description |
|---|---|
static EnumSet<CastDeviceCapability> |
getCastDeviceCapabilities(int value)
Generates a
Set of CastDeviceCapabilities that
corresponds to the specified "ca" value from the device's
DNS-SD record. |
int |
getMask() |
boolean |
isIn(int value)
Checks whether this capability's bit is active in the specified value.
|
static CastDeviceCapability |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CastDeviceCapability[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CastDeviceCapability NONE
public static final CastDeviceCapability VIDEO_OUT
public static final CastDeviceCapability VIDEO_IN
public static final CastDeviceCapability AUDIO_OUT
public static final CastDeviceCapability AUDIO_IN
public static final CastDeviceCapability DEV_MODE
public static final CastDeviceCapability MULTIZONE_GROUP
public static CastDeviceCapability[] values()
for (CastDeviceCapability c : CastDeviceCapability.values()) System.out.println(c);
public static CastDeviceCapability valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int getMask()
public boolean isIn(int value)
value - the value to check.true if this capability is contained in the specified
value, false otherwise.@Nonnull public static EnumSet<CastDeviceCapability> getCastDeviceCapabilities(int value)
Set of CastDeviceCapabilities that
corresponds to the specified "ca" value from the device's
DNS-SD record.value - the "ca" value.Set of capabilities.Copyright © 2022. All rights reserved.