Touch Interaction Enabled

If the user is allowed to interact with the user interface via touch. This status is based on the fact if he is currently riding or standing.

When disabled, all touch-interactive elements should be removed from the screen and the amount of information should be reduced to avoid distracting the user while he/she is riding.

When enabled, a navigation bar is shown at the top of the screen which reduces the vertical size available to modules.

const ontouchInteractionChange = (isEnabled: boolean, timestamp?: Date) => {
    console.log(isEnabled, timestamp);
};


COBI.app.touchInteractionEnabled.subscribe(onThemeChange);
COBI.app.touchInteractionEnabled.unsubscribe(onThemeChange);

Last updated