public static enum CastEvent.CastEventType extends Enum<CastEvent.CastEventType>
CastEvent types.| Enum Constant and Description |
|---|
APPLICATION_AVAILABILITY
Event is fired when an unclaimed
StandardResponse.AppAvailabilityResponse is
received, which shouldn't normally happen |
CLOSE
Event is fired when an unclaimed
StandardResponse.CloseResponse is received,
which shouldn't normally happen |
CONNECTED
Event is fired when the connection state with the cast device changes
|
CUSTOM_MESSAGE
Event is fired when an unclaimed custom message is received
|
DEVICE_ADDED
Event is fired when an unclaimed
StandardResponse.DeviceAddedResponse is
received |
DEVICE_REMOVED
Event is fired when an unclaimed
StandardResponse.DeviceRemovedResponse is
received |
DEVICE_UPDATED
Event is fired when an unclaimed
StandardResponse.DeviceUpdatedResponse is
received |
ERROR_RESPONSE
Event is fired when an unclaimed
StandardResponse.ErrorResponse is received,
which shouldn't normally happen |
LAUNCH_ERROR
Event is fired when an unclaimed
StandardResponse.LaunchErrorResponse is
received, which shouldn't normally happen |
MEDIA_STATUS
Event is fired when an unclaimed
StandardResponse.MediaStatusResponse is
received |
MULTIZONE_STATUS
Event is fired when an unclaimed
StandardResponse.MultizoneStatusResponse is
received |
RECEIVER_STATUS
Event is fired when an unclaimed
StandardResponse.ReceiverStatusResponse is
received |
UNKNOWN
Event is fired when a response that can't be deserialized is
received, the data will be
JsonNode |
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
getDataClass() |
static CastEvent.CastEventType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CastEvent.CastEventType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CastEvent.CastEventType APPLICATION_AVAILABILITY
StandardResponse.AppAvailabilityResponse is
received, which shouldn't normally happenpublic static final CastEvent.CastEventType CLOSE
StandardResponse.CloseResponse is received,
which shouldn't normally happenpublic static final CastEvent.CastEventType CONNECTED
public static final CastEvent.CastEventType CUSTOM_MESSAGE
public static final CastEvent.CastEventType DEVICE_ADDED
StandardResponse.DeviceAddedResponse is
receivedpublic static final CastEvent.CastEventType DEVICE_REMOVED
StandardResponse.DeviceRemovedResponse is
receivedpublic static final CastEvent.CastEventType DEVICE_UPDATED
StandardResponse.DeviceUpdatedResponse is
receivedpublic static final CastEvent.CastEventType ERROR_RESPONSE
StandardResponse.ErrorResponse is received,
which shouldn't normally happenpublic static final CastEvent.CastEventType LAUNCH_ERROR
StandardResponse.LaunchErrorResponse is
received, which shouldn't normally happenpublic static final CastEvent.CastEventType MEDIA_STATUS
StandardResponse.MediaStatusResponse is
receivedpublic static final CastEvent.CastEventType MULTIZONE_STATUS
StandardResponse.MultizoneStatusResponse is
receivedpublic static final CastEvent.CastEventType RECEIVER_STATUS
StandardResponse.ReceiverStatusResponse is
receivedpublic static final CastEvent.CastEventType UNKNOWN
JsonNodepublic static CastEvent.CastEventType[] values()
for (CastEvent.CastEventType c : CastEvent.CastEventType.values()) System.out.println(c);
public static CastEvent.CastEventType 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 null@Nullable public Class<?> getDataClass()
Class for this CastEvent.CastEventType.Copyright © 2022. All rights reserved.