setEnabled method

Future<void> setEnabled(
  1. SceneItemEnableStateChanged sceneItemEnableStateChanged
)

Sets 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<void> setEnabled(
        SceneItemEnableStateChanged sceneItemEnableStateChanged) async =>
    await obsWebSocket.sendRequest(Request(
      'SetSceneItemEnabled',
      requestData: sceneItemEnableStateChanged.toJson(),
    ));