list method

Future<List<SceneItemDetail>> list(
  1. String sceneName
)

Gets a list of all scene items in a scene.

Scenes only

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

Implementation

Future<List<SceneItemDetail>> list(String sceneName) async {
  final response = await obsWebSocket.sendRequest(Request(
    'GetSceneItemList',
    requestData: {'sceneName': sceneName},
  ));

  final sceneItemListResponse =
      SceneItemListResponse.fromJson(response!.responseData!);

  return sceneItemListResponse.sceneItems;
}