pressInputPropertiesButton method

Future<void> pressInputPropertiesButton({
  1. String? inputName,
  2. String? inputUuid,
  3. required String propertyName,
})

Presses a button in the input's properties.

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

Implementation

Future<void> pressInputPropertiesButton({
  String? inputName,
  String? inputUuid,
  required String propertyName,
}) async {
  if (inputName == null && inputUuid == null) {
    throw ArgumentError('inputName or inputUuid must be provided');
  }

  await obsWebSocket.sendRequest(
    Request(
      'PressInputPropertiesButton',
      requestData: {
        'inputName': inputName,
        'inputUuid': inputUuid,
        'propertyName': propertyName,
      },
    ),
  );
}