getEnabled method

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

Gets the enable 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> getEnabled({
  required String sceneName,
  required int sceneItemId,
}) async {
  final response = await obsWebSocket.sendRequest(Request(
    'GetSceneItemEnabled',
    requestData: {
      'sceneName': sceneName,
      'sceneItemId': sceneItemId,
    },
  ));

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