getProfileParameter method

Future<ProfileParameterResponse> getProfileParameter({
  1. required String parameterCategory,
  2. required String parameterName,
})

Gets a parameter from the current profile's configuration.

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

Implementation

Future<ProfileParameterResponse> getProfileParameter({
  required String parameterCategory,
  required String parameterName,
}) async {
  final response = await obsWebSocket.sendRequest(Request(
    'GetProfileParameter',
    requestData: {
      'parameterCategory': parameterCategory,
      'parameterName': parameterName,
    },
  ));

  return ProfileParameterResponse.fromJson(response!.responseData!);
}