# HasGenericTraits

# HasGenericTraits


```
@HomeExperimentalGenericApi
interface HasGenericTraits
```

<br />

*** ** * ** ***

This interface is only present to allow the sample app to see all traits present on a device (even with TraitId collisions). flatMap + .toSet on the collection of traits from the genericTypes() isn't quite the same, since it doesn't contain traits outside of the type's defined set.

## Summary

| ### Public functions |
|---|---|
| `https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.flow/-flow/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-set/index.html<https://developers.home.google.com/reference/kotlin/com/google/home/GenericTrait>>` | `https://developers.home.google.com/reference/kotlin/com/google/home/HasGenericTraits#genericTraits()()` |

## Public functions

### genericTraits

```
fun genericTraits(): Flow<Set<GenericTrait>>
```