setSceneItemLocked method

Future<void> setSceneItemLocked({
  1. required String sceneName,
  2. required int sceneItemId,
  3. required bool sceneItemLocked,
})

Sets the lock state of a scene item.

Scenes and Group

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

Implementation

Future<void> setSceneItemLocked({
  required String sceneName,
  required int sceneItemId,
  required bool sceneItemLocked,
}) async =>
    await obsWebSocket.sendRequest(Request(
      'SetSceneItemLocked',
      requestData: {
        'sceneName': sceneName,
        'sceneItemId': sceneItemId,
        'sceneItemLocked': sceneItemLocked,
      },
    ));