getPersistentData method

Future<Map<String, dynamic>> getPersistentData({
  1. required String realm,
  2. required String slotName,
})

Gets the value of a "slot" from the selected persistent data realm.

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

Implementation

Future<Map<String, dynamic>> getPersistentData(
    {required String realm, required String slotName}) async {
  final response = await obsWebSocket.sendRequest(Request(
    'GetPersistentData',
    requestData: {
      'realm': realm,
      'slotName': slotName,
    },
  ));

  return response!.responseData!;
}