# CommandBits

    struct CommandBits

Bitmap indicating which commands are supported.
- `


  ### [rawValue](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait/CommandBits#/s:15GoogleHomeTypes6MatterO12ActionsTraitV11CommandBitsV8rawValues6UInt16Vvp)


  ` The corresponding value of the raw type.

  A new instance initialized with `rawValue` will be equivalent to this
  instance. For example:

      enum PaperSize: String {
          case A4, A5, Letter, Legal
      }

      let selectedSize = PaperSize.Letter
      print(selectedSize.rawValue)
      // Prints "Letter"

      print(selectedSize == PaperSize(rawValue: selectedSize.rawValue)!)
      // Prints "true"

  #### Declaration

  Swift

      let rawValue: UInt16

- `


  ### [init(rawValue:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait/CommandBits#/s:15GoogleHomeTypes6MatterO12ActionsTraitV11CommandBitsV8rawValueAGs6UInt16V_tcfc)


  ` Creates a new option set from the given raw value.

  This initializer always succeeds, even if the value passed as `https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait/CommandBits.html#/s:15GoogleHomeTypes6MatterO12ActionsTraitV11CommandBitsV8rawValues6UInt16Vvp`
  exceeds the static properties declared as part of the option set. This
  example creates an instance of `ShippingOptions` with a raw value beyond
  the highest element, with a bit mask that effectively contains all the
  declared static members.

      let extraOptions = ShippingOptions(rawValue: 255)
      print(extraOptions.isStrictSuperset(of: .all))
      // Prints "true"

  #### Declaration

  Swift

      init(rawValue: UInt16)

  #### Parameters

  |---|---|
  | ` rawValue ` | The raw value of the option set to create. Each bit of `https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait/CommandBits.html#/s:15GoogleHomeTypes6MatterO12ActionsTraitV11CommandBitsV8rawValues6UInt16Vvp` potentially represents an element of the option set, though raw values may include bits that are not defined as distinct values of the `OptionSet` type. |

- `


  ### [instantAction](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait/CommandBits#/s:15GoogleHomeTypes6MatterO12ActionsTraitV11CommandBitsV13instantActionAGvpZ)


  ` Supports the `InstantActionCommand`.

  #### Declaration

  Swift

      static let instantAction: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait.html.CommandBits

- `


  ### [instantActionWithTransition](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait/CommandBits#/s:15GoogleHomeTypes6MatterO12ActionsTraitV11CommandBitsV27instantActionWithTransitionAGvpZ)


  ` Supports the `InstantActionWithTransitionCommand`.

  #### Declaration

  Swift

      static let instantActionWithTransition: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait.html.CommandBits

- `


  ### [startAction](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait/CommandBits#/s:15GoogleHomeTypes6MatterO12ActionsTraitV11CommandBitsV11startActionAGvpZ)


  ` Supports the `StartActionCommand`.

  #### Declaration

  Swift

      static let startAction: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait.html.CommandBits

- `


  ### [startActionWithDuration](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait/CommandBits#/s:15GoogleHomeTypes6MatterO12ActionsTraitV11CommandBitsV23startActionWithDurationAGvpZ)


  ` Supports the `StartActionWithDurationCommand`.

  #### Declaration

  Swift

      static let startActionWithDuration: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait.html.CommandBits

- `


  ### [stopAction](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait/CommandBits#/s:15GoogleHomeTypes6MatterO12ActionsTraitV11CommandBitsV10stopActionAGvpZ)


  ` Supports the `StopActionCommand`.

  #### Declaration

  Swift

      static let stopAction: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait.html.CommandBits

- `


  ### [pauseAction](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait/CommandBits#/s:15GoogleHomeTypes6MatterO12ActionsTraitV11CommandBitsV11pauseActionAGvpZ)


  ` Supports the `PauseActionCommand`.

  #### Declaration

  Swift

      static let pauseAction: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait.html.CommandBits

- `


  ### [pauseActionWithDuration](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait/CommandBits#/s:15GoogleHomeTypes6MatterO12ActionsTraitV11CommandBitsV23pauseActionWithDurationAGvpZ)


  ` Supports the `PauseActionWithDurationCommand`.

  #### Declaration

  Swift

      static let pauseActionWithDuration: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait.html.CommandBits

- `


  ### [resumeAction](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait/CommandBits#/s:15GoogleHomeTypes6MatterO12ActionsTraitV11CommandBitsV12resumeActionAGvpZ)


  ` Supports the `ResumeActionCommand`.

  #### Declaration

  Swift

      static let resumeAction: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait.html.CommandBits

- `


  ### [enableAction](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait/CommandBits#/s:15GoogleHomeTypes6MatterO12ActionsTraitV11CommandBitsV12enableActionAGvpZ)


  ` Supports the `EnableActionCommand`.

  #### Declaration

  Swift

      static let enableAction: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait.html.CommandBits

- `


  ### [enableActionWithDuration](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait/CommandBits#/s:15GoogleHomeTypes6MatterO12ActionsTraitV11CommandBitsV24enableActionWithDurationAGvpZ)


  ` Supports the `EnableActionWithDurationCommand`.

  #### Declaration

  Swift

      static let enableActionWithDuration: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait.html.CommandBits

- `


  ### [disableAction](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait/CommandBits#/s:15GoogleHomeTypes6MatterO12ActionsTraitV11CommandBitsV13disableActionAGvpZ)


  ` Supports the `DisableActionCommand`.

  #### Declaration

  Swift

      static let disableAction: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait.html.CommandBits

- `


  ### [disableActionWithDuration](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait/CommandBits#/s:15GoogleHomeTypes6MatterO12ActionsTraitV11CommandBitsV25disableActionWithDurationAGvpZ)


  ` Supports the `DisableActionWithDurationCommand`.

  #### Declaration

  Swift

      static let disableActionWithDuration: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ActionsTrait.html.CommandBits