setName method

Future<void> setName({
  1. required String inputName,
  2. 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({
  required String inputName,
  required String newInputName,
}) async {
  await obsWebSocket.sendRequest(Request(
    'SetInputName',
    requestData: {
      'inputName': inputName,
      'newInputName': newInputName,
    },
  ));
}