Class OpenProjector.Request
- java.lang.Object
-
- nl.harm27.obswebsocket.api.requests.BaseRequest
-
- nl.harm27.obswebsocket.api.requests.general.OpenProjector.Request
-
- Enclosing class:
- OpenProjector
public static class OpenProjector.Request extends BaseRequest
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<?>
getResponseType()
Response type class to map the response to the correct datatype.void
setGeometry(String geometry)
Size and position of the projector window (only if monitor is -1).void
setMonitor(int monitor)
Monitor to open the projector on.void
setName(String name)
Name of the source or scene to be displayed (ignored for other projector types).void
setType(OpenProjector.Type type)
Type of projector-
Methods inherited from class nl.harm27.obswebsocket.api.requests.BaseRequest
getMessageId
-
-
-
-
Constructor Detail
-
Request
public Request(String messageId)
-
-
Method Detail
-
getResponseType
public Class<?> getResponseType()
Description copied from class:BaseRequest
Response type class to map the response to the correct datatype.- Specified by:
getResponseType
in classBaseRequest
-
setType
public void setType(OpenProjector.Type type)
Type of projector
-
setMonitor
public void setMonitor(int monitor)
Monitor to open the projector on. If -1 or omitted, opens a window.
-
setGeometry
public void setGeometry(String geometry)
Size and position of the projector window (only if monitor is -1). Encoded in Base64 using Qt's geometry encoding (https://doc.qt.io/qt-5/qwidget.html#saveGeometry). Corresponds to OBS's saved projectors.
-
setName
public void setName(String name)
Name of the source or scene to be displayed (ignored for other projector types).
-
-