@Immutable public class ReceiverStatus extends Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
activeInput
true if the cast device is the active input, false
otherwise |
protected List<Application> |
applications
The
List of Applications |
protected boolean |
standBy
true if the cast device is in standby, false otherwise |
protected Volume |
volume
The receiver
Volume instance |
| Constructor and Description |
|---|
ReceiverStatus(Volume volume,
List<Application> applications,
boolean activeInput,
boolean standBy)
Creates a new instance using the specified parameters.
|
| Modifier and Type | Method and Description |
|---|---|
List<Application> |
getApplications() |
Application |
getRunningApplication() |
Volume |
getVolume() |
boolean |
isActiveInput() |
boolean |
isApplicationRunning(String applicationId)
Checks if the application with the specified application ID currently is
the "running" application.
|
boolean |
isStandBy() |
String |
toString() |
@Nonnull protected final List<Application> applications
List of Applicationsprotected final boolean activeInput
true if the cast device is the active input, false
otherwiseprotected final boolean standBy
true if the cast device is in standby, false otherwisepublic ReceiverStatus(@Nullable Volume volume, @Nullable List<Application> applications, boolean activeInput, boolean standBy)
volume - the Volume instance.applications - the List of Applications.activeInput - true if the cast device is the active input,
false otherwise.standBy - true if the cast device is in standby,
false otherwise.@Nonnull public List<Application> getApplications()
List of Applications.public boolean isActiveInput()
true if the cast device is the active input,
false otherwise.public boolean isStandBy()
true if the cast device is in standby, false
otherwise.@Nullable public Application getRunningApplication()
Application instance of the "running" application.public boolean isApplicationRunning(String applicationId)
applicationId - the application ID.true if the application with the specified application ID
is currently running, false otherwise.Copyright © 2022. All rights reserved.