public class RemoteDisplay extends Object
Modifier and Type | Field and Description |
---|---|
static int |
PLAYBACK_VOLUME_FIXED
Volume handling: Output volume is fixed.
|
static int |
PLAYBACK_VOLUME_VARIABLE
Volume handling: Output volume can be changed.
|
static int |
STATUS_AVAILABLE
Status code: Indicates that the remote display is available for new connections.
|
static int |
STATUS_CONNECTED
Status code: Indicates that the remote display is connected and is mirroring
display contents.
|
static int |
STATUS_CONNECTING
Status code: Indicates that the remote display is current connecting.
|
static int |
STATUS_IN_USE
Status code: Indicates that the remote display is in use by someone else.
|
static int |
STATUS_NOT_AVAILABLE
Status code: Indicates that the remote display is not available.
|
Constructor and Description |
---|
RemoteDisplay(String id,
String name)
Creates a remote display with the specified name and id.
|
Modifier and Type | Method and Description |
---|---|
String |
getDescription() |
String |
getId() |
String |
getName() |
int |
getPresentationDisplayId() |
int |
getStatus() |
int |
getVolume() |
int |
getVolumeHandling() |
int |
getVolumeMax() |
void |
setDescription(String description) |
void |
setName(String name) |
void |
setPresentationDisplayId(int presentationDisplayId) |
void |
setStatus(int status) |
void |
setVolume(int volume) |
void |
setVolumeHandling(int volumeHandling) |
void |
setVolumeMax(int volumeMax) |
String |
toString()
Returns a string representation of the object.
|
public static final int STATUS_NOT_AVAILABLE
public static final int STATUS_IN_USE
public static final int STATUS_AVAILABLE
public static final int STATUS_CONNECTING
public static final int STATUS_CONNECTED
public static final int PLAYBACK_VOLUME_VARIABLE
public static final int PLAYBACK_VOLUME_FIXED
public String getId()
public String getName()
public void setName(String name)
public String getDescription()
public void setDescription(String description)
public int getStatus()
public void setStatus(int status)
public int getVolume()
public void setVolume(int volume)
public int getVolumeMax()
public void setVolumeMax(int volumeMax)
public int getVolumeHandling()
public void setVolumeHandling(int volumeHandling)
public int getPresentationDisplayId()
public void setPresentationDisplayId(int presentationDisplayId)
public String toString()
Object
toString
method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString
method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@
', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())