# PlatformEnum

    protocol PlatformEnum : https://developers.home.google.com/reference/swift/GoogleHomeSDK/Protocols/Enum32.html

Interface for enumerations in Platform traits.
- `


  ### [OriginalValue](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Protocols/PlatformEnum#/s:13GoogleHomeSDK12PlatformEnumP13OriginalValueQa)


  ` Undocumented

  #### Declaration

  Swift

      associatedtype OriginalValue = UInt32

- `


  ### [init(valueName:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Protocols/PlatformEnum#/s:13GoogleHomeSDK12PlatformEnumP9valueNamexSgSS_tcfc)


  ` Default implementation Creates a new `PlatformEnum` instance using the given value name.

  #### Default Implementation

  Creates a new `PlatformEnum` instance using the given value name.

  #### Declaration

  Swift

      @_spi(Unknown)
      init?(valueName: String)

  #### Parameters

  |---|---|
  | ` valueName ` | The name of the enum value to create. |

  #### Return Value

  A new `PlatformEnum` instance, or nil if the value name is not recognized.