> Documentation index: https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ConnectivityTrait/llms.txt

    enum ConnectivityState

The connectivity state of a device.
- `


  ### [connectivityUnspecified](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ConnectivityTrait/ConnectivityState.md.txt#/s:15GoogleHomeTypes0A0O17ConnectivityTraitV0D5StateO23connectivityUnspecifiedyA2GmF)


  ` The connectivity state is unspecified.

  #### Declaration

  Swift

      case connectivityUnspecified

- `


  ### [online](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ConnectivityTrait/ConnectivityState.md.txt#/s:15GoogleHomeTypes0A0O17ConnectivityTraitV0D5StateO6onlineyA2GmF)


  ` The device is online.

  #### Declaration

  Swift

      case online

- `


  ### [offline](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ConnectivityTrait/ConnectivityState.md.txt#/s:15GoogleHomeTypes0A0O17ConnectivityTraitV0D5StateO7offlineyA2GmF)


  ` The device is offline.

  #### Declaration

  Swift

      case offline

- `


  ### [partialOnline](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ConnectivityTrait/ConnectivityState.md.txt#/s:15GoogleHomeTypes0A0O17ConnectivityTraitV0D5StateO13partialOnlineyA2GmF)


  ` The device is partially online.

  #### Declaration

  Swift

      case partialOnline

- `


  ### [init(rawValue:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Google/ConnectivityTrait/ConnectivityState.md.txt#/s:15GoogleHomeTypes0A0O17ConnectivityTraitV0D5StateO8rawValueAGSgs6UInt64V_tcfc)


  ` Creates a new instance with the specified raw value.

  If there is no value of the type that corresponds with the specified raw
  value, this initializer returns `nil`. For example:

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

      print(PaperSize(rawValue: "Legal"))
      // Prints "Optional(PaperSize.Legal)"

      print(PaperSize(rawValue: "Tabloid"))
      // Prints "nil"

  #### Declaration

  Swift

      init?(rawValue: UInt64)

  #### Parameters

  |---|---|
  | ` rawValue ` | The raw value to use for the new instance. |