Class: $.MO2Delegate

Inherits:
WatchUi.InputDelegate show all

Overview

Instance Member Summary collapse

Instance Method Summary collapse

Instance Attribute Details

var _index as Lang.Number

var _sensor as $.MO2Sensor

Instance Method Details

getDelegate() as $.MO2Delegate

Get a new delegate

Returns:

  • The delegate

getView() as $.MainView or $.DataView or $.GraphView or $.CommandView

Get a new view based on the current index

Returns:

  • The view

initialize(sensor as $.MO2Sensor, index as Lang.Number)

Constructor

Parameters:

  • sensor —

    ANT channel and data

  • index —

    Number indicating the current view

onKey(evt as WatchUi.KeyEvent) as Lang.Boolean

Handle a physical button being pressed and released

Parameters:

  • evt —

    The key event that occurred

Returns:

  • true if handled, false otherwise

onNextPage() as Void

Go to the next page

onPreviousPage() as Void

Go to the previous page

onSwipe(evt as WatchUi.SwipeEvent) as Lang.Boolean

Handle the touch screen swipe event

Parameters:

  • evt —

    The swipe event that occurred

Returns:

  • true if handled, false otherwise

onTap(evt as WatchUi.ClickEvent) as Lang.Boolean

Handle a screen tap event

Parameters:

  • evt —

    The click event that occurred

Returns:

  • true if handled, false otherwise


Generated Jun 9, 2026, 8:45:45 AM