getSceneItemLocked method

Future<bool> getSceneItemLocked({
  1. required String sceneName,
  2. required int sceneItemId,
})

Gets the lock state of a scene item.

Scenes and Groups

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

Implementation

Future<bool> getSceneItemLocked({
  required String sceneName,
  required int sceneItemId,
}) async {
  final response = await obsWebSocket.sendRequest(Request(
    'GetSceneItemLocked',
    requestData: {
      'sceneName': sceneName,
      'sceneItemId': sceneItemId,
    },
  ));

  return BooleanResponse.fromJson(response!.responseData!).enabled;
}