Theme
The app color theme. This can be used to match the appearance of the COBI.Bike app in, for example, DevKit modules.
const onThemeChange = (theme: Theme, timestamp?: Date) => {
console.log(theme, timestamp);
};
COBI.app.theme.subscribe(onThemeChange);
COBI.app.theme.unsubscribe(onThemeChange);
Last updated