> For the complete documentation index, see [llms.txt](https://docs.sentiance.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sentiance.com/sdk/api-reference/android/driving-insights/safetyscorerequestparameters/occupantroles.md).

# OccupantRoles

The occupant roles for which an aggregated safety score is being requested.

## OccupantRoles API

### `all()`

Returns an instance of OccupantRoles that represents all occupant roles.

```java
OccupantRoles all();
```

### `some()`

Returns an instance of OccupantRoles that represents a subset of occupant roles.

```java
OccupantRoles some(OccupantRole... roles);
```

<table><thead><tr><th width="217">Parameters</th><th></th></tr></thead><tbody><tr><td>roles</td><td>The occupant roles for which an aggregated safety score is being requested. See <a href="/pages/Sjubmw5Lxv4khT2CtDoc">OccupantRole</a>.</td></tr></tbody></table>
