> For the complete documentation index, see [llms.txt](https://sryvkver.gitbook.io/cobi.bike/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sryvkver.gitbook.io/cobi.bike/namespaces/parameters/context.md).

# Context

Get the current context that the module should reflect.

{% tabs %}
{% tab title="Typescript" %}

```typescript
const context: 'onRide' | 'offRide' | 'onRideSettings' | 'offRideSettings' = COBI.parameters.context();
```

{% endtab %}

{% tab title="Javascript" %}

```javascript
const context = COBI.parameters.context();
```

{% endtab %}
{% endtabs %}

The context can be any of the following values:

<table data-card-size="large" data-view="cards"><thead><tr><th>Context</th><th>Meaning</th></tr></thead><tbody><tr><td>onRide</td><td><p>Set during the riding phase. </p><p>Show information relevant during the ride (e.g. live metrics) and offer interaction that is optimized for the short attention time while riding.</p></td></tr><tr><td>offRide</td><td><p>Set in the pre- and post-riding phase. </p><p>Allow the user to prepare his next ride, give him an overview of what he can expect during the riding phase or information about his last ride or offer services that are not relevant during the riding phase (e.g. maintenance)</p></td></tr><tr><td>onRideSettings</td><td><p>Set when the user accesses the settings during the riding phase. Allow the user to quickly adjust important settings while he is on the go. </p><p>Those settings should be targeted to <code>COBI.context.onRide</code> experience.</p></td></tr><tr><td>offRideSettings</td><td><p>Set when the user accesses the settings during the pre- and post-riding phase. </p><p>Offer more in-depth settings that are either targeted to <code>COBI.context.offRide</code> or both experiences (depending on how your module is structured)</p></td></tr></tbody></table>
