Add --display command line parameter to specify a display id. PR #1238 <https://github.com/Genymobile/scrcpy/pull/1238> Signed-off-by: Romain Vimont <rom@rom1v.com>
22 lines
572 B
Java
22 lines
572 B
Java
package com.genymobile.scrcpy;
|
|
|
|
public class InvalidDisplayIdException extends RuntimeException {
|
|
|
|
private final int displayId;
|
|
private final int[] availableDisplayIds;
|
|
|
|
public InvalidDisplayIdException(int displayId, int[] availableDisplayIds) {
|
|
super("There is no display having id " + displayId);
|
|
this.displayId = displayId;
|
|
this.availableDisplayIds = availableDisplayIds;
|
|
}
|
|
|
|
public int getDisplayId() {
|
|
return displayId;
|
|
}
|
|
|
|
public int[] getAvailableDisplayIds() {
|
|
return availableDisplayIds;
|
|
}
|
|
}
|