    struct DeviceTypeGrants

    extension DeviceTypeGrants : Sendable, SendableMetatype

The set of device types that the user has granted this application permission to access.

When a user grants permission to a device type, the application gains access to all devices of
that type within the structure.
- `


  ### [isEmpty](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/DeviceTypeGrants#/s:13GoogleHomeSDK16DeviceTypeGrantsV7isEmptySbvp)


  ` Returns true if there are no grants.

  #### Declaration

  Swift

      var isEmpty: Bool { get }

[## Available where (\`some\`\` Sequence\<any\`\` DeviceType.Type\>).Element\` == \`any\`\` DeviceType.Type\`, \`some\`\` Sequence\<any\`\` DeviceType.Type\`\> : \`Sequence\`](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/DeviceTypeGrants#/Available%20where%20%28%60some%60%60%20Sequence%3Cany%60%60%20DeviceType.Type%3E%29.Element%60%20%3D%3D%20%60any%60%60%20DeviceType.Type%60%2C%20%60some%60%60%20Sequence%3Cany%60%60%20DeviceType.Type%60%3E%20%3A%20%60Sequence%60)

- `


  ### [contains(all:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/DeviceTypeGrants#/s:13GoogleHomeSDK16DeviceTypeGrantsV8contains3allSbx_tSTRzAA0dE0_pXp7ElementRtzlF)


  ` Returns true if all of the requested DeviceTypes are granted.

  #### Declaration

  Swift

      func contains(all: some Sequence<any https://developers.home.google.com/reference/swift/GoogleHomeSDK/Protocols/DeviceType.html.Type>) -> Bool

- `


  ### [contains(any:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/DeviceTypeGrants#/s:13GoogleHomeSDK16DeviceTypeGrantsV8contains3anySbx_tSTRzAA0dE0_pXp7ElementRtzlF)


  ` Returns true if any of the requested DeviceTypes are granted.

  #### Declaration

  Swift

      func contains(any: some Sequence<any https://developers.home.google.com/reference/swift/GoogleHomeSDK/Protocols/DeviceType.html.Type>) -> Bool