Class SetTBarPosition.Builder
- java.lang.Object
-
- nl.harm27.obs.websocket.api.base.BaseBuilder
-
- nl.harm27.obs.websocket.api.requests.transitions.SetTBarPosition.Builder
-
- Enclosing class:
- SetTBarPosition
public static class SetTBarPosition.Builder extends BaseBuilder
-
-
Constructor Summary
Constructors Constructor Description Builder(BiConsumer<BaseRequest,Consumer<BaseResponse>> requestConsumer, Consumer<BaseRequest> batchConsumer, Supplier<String> messageIdSupplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SetTBarPosition.Request
batchMessage()
Batch the message to the OBS Studio instance.double
getPosition()
T-Bar position.Optional<Boolean>
isRelease()
Whether or not the T-Bar gets released automatically after setting its new position (like a user releasing their mouse button after moving the T-Bar).void
sendMessage(Consumer<SetTBarPosition.Response> consumer)
Send the message to the OBS Studio instance.void
setPosition(double position)
T-Bar position.void
setRelease(boolean release)
Whether or not the T-Bar gets released automatically after setting its new position (like a user releasing their mouse button after moving the T-Bar).-
Methods inherited from class nl.harm27.obs.websocket.api.base.BaseBuilder
batchMessage, getNewMessageId, sendMessage
-
-
-
-
Constructor Detail
-
Builder
public Builder(BiConsumer<BaseRequest,Consumer<BaseResponse>> requestConsumer, Consumer<BaseRequest> batchConsumer, Supplier<String> messageIdSupplier)
-
-
Method Detail
-
getPosition
public double getPosition()
T-Bar position. This value must be between 0.0 and 1.0.
-
setPosition
public void setPosition(double position)
T-Bar position. This value must be between 0.0 and 1.0.
-
isRelease
public Optional<Boolean> isRelease()
Whether or not the T-Bar gets released automatically after setting its new position (like a user releasing their mouse button after moving the T-Bar). Call `ReleaseTBar` manually if you set `release` to false. Defaults to true.
-
setRelease
public void setRelease(boolean release)
Whether or not the T-Bar gets released automatically after setting its new position (like a user releasing their mouse button after moving the T-Bar). Call `ReleaseTBar` manually if you set `release` to false. Defaults to true.
-
sendMessage
public void sendMessage(Consumer<SetTBarPosition.Response> consumer)
Send the message to the OBS Studio instance.
-
batchMessage
public SetTBarPosition.Request batchMessage()
Batch the message to the OBS Studio instance.
-
-