setName method

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

Sets the name of an input (rename).

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

Implementation

Future<void> setName({
  String? inputName,
  String? inputUuid,
  required String newInputName,
}) async {
  await obsWebSocket.sendRequest(
    Request(
      'SetInputName',
      requestData: {
        'inputName': inputName,
        'inputUuid': inputUuid,
        'newInputName': newInputName,
      },
    ),
  );
}