🚴
COBI.Bike
  • Introduction
  • Getting up and running
  • Namespaces
    • App
      • Theme
      • Text to Speech
      • Read Later
      • Language
      • Contact
      • Touch Interaction Enabled
      • Hub Location
      • Clock Visible
      • Is Dark
      • Is Hub Connected
    • Parameters
      • Language
      • Context
      • SDK Version
    • Hub
      • Motor Interface Ready
      • Bell Ringing
      • External Interface Action
      • Ambient Light State
    • Battery
      • State
    • Battery Two
      • State
    • Battery Controller
      • Slots
      • State
    • Motor
      • Serialnumber
      • Distance
      • Assistance Indicator
      • Range
      • Supported Drive Modes
      • Drive mode
      • Next Service
      • Power On Time
    • Mobile
      • Location
      • Heading
      • Location Availability
    • Navigation Service
      • Route
      • Eta
      • Distance To Destination
      • Status
      • Control
    • User
      • Temperature Unit
      • Length Unit
    • Bike
      • Type
    • Ride Service
      • Speed
      • User Power
      • User Power Availability
      • Heart Rate
      • Heart Rate Availability
      • Cadence
      • Cadence Availability
    • Tour Service
      • Calories
      • Ascent
      • Riding Distance
      • Riding Duration
      • Average Speed
    • Devkit
      • Override ThumbController Mapping
  • Entities
    • Theme
    • RgbColor
    • TextToSpeechContent
    • ReadLaterItem
    • ContactData
    • ExternalInterfaceAction
    • AmbientLightState
    • BatteryCondition
      • BatteryState
    • BatterySlots
    • ServiceTrigger
    • Location
    • Coordinate
    • Route
    • NavigationStatus
    • NavigationCommand
      • NavigationAction
    • TemperatureUnit
    • MeasurementUnit
    • BikeType
    • Placemark
      • PlacemarkCategory
Powered by GitBook
On this page
  1. Namespaces
  2. App

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);
const ontouchInteractionChange = (isEnabled, timestamp) => {
    console.log(isEnabled, timestamp);
};


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

Last updated 2 years ago