Override ThumbController Mapping

When set to true, the user cannot control his e-bike support mode anymore while the module is shown (if applicable).

However, the module then receives the external interface actions that would otherwise be reserved for controlling the support mode (UP, DOWN).

Default is false, but this does not have any effect when the support mode is not available (e.g. on standard bikes).

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

COBI.devkit.overrideThumbControllerMapping.write(true, overrideCallback);
pageNavigationCommand

Last updated