toggleOutput method

Future<bool> toggleOutput(
  1. String outputName
)

Toggles the status of an output.

  • Complexity Rating: 4/5
  • Latest Supported RPC Version: 1
  • Added in v5.0.0

Implementation

Future<bool> toggleOutput(String outputName) async {
  final response = await obsWebSocket.sendRequest(Request('ToggleOutput'));

  return BooleanResponse.fromJson(response!.responseData!).enabled;
}