setPersistentData method

Future<void> setPersistentData({
  1. required String realm,
  2. required String slotName,
  3. required dynamic slotValue,
})

Sets 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<void> setPersistentData(
        {required String realm,
        required String slotName,
        required dynamic slotValue}) async =>
    await obsWebSocket.sendRequest(Request(
      'SetPersistentData',
      requestData: {
        'realm': realm,
        'slotName': slotName,
        'slotValue': slotValue
      },
    ));