Context

Get the current context that the module should reflect.

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

The context can be any of the following values:

onRide

Set during the riding phase.

Show information relevant during the ride (e.g. live metrics) and offer interaction that is optimized for the short attention time while riding.

offRide

Set in the pre- and post-riding phase.

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)

onRideSettings

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.

Those settings should be targeted to COBI.context.onRide experience.

offRideSettings

Set when the user accesses the settings during the pre- and post-riding phase.

Offer more in-depth settings that are either targeted to COBI.context.offRide or both experiences (depending on how your module is structured)

Last updated