Closure Application Override APIs#
To override any of the following AppTask hooks, declare the corresponding *Impl() method in CustomerAppTask.h and implement it in CustomerAppTask.cpp. Ensure that the method signature matches the declaration in autogen/AppTaskImpl.h.
AppTask#
Override | Public API | Default behavior |
|---|---|---|
|
| Registers the button callback, initializes the display, and initializes Closure Manager. |
|
| Routes closure button presses to |
|
| Stops motion if a closure action is in progress; otherwise, it starts a MoveTo toward the opposite position. |
|
| Logs Identify attribute changes. |
|
| Refreshes the UI when Closure Control |
|
| Logs Closure Dimension attribute changes. |
ClosureManager#
These APIs use the Closure app's separate manager override chain. Declare and
implement the corresponding *Impl() methods in CustomerAppManager, which
derives from ClosureManagerImpl<CustomerAppManager>. Use
autogen/ClosureManagerImpl.h for exact signatures. Do not place these
overrides in CustomerAppTask.
Override | Public API | Default behavior |
|---|---|---|
|
| Initializes the closure timer, closure endpoints, and panel endpoints. |
|
| Validates and starts an asynchronous closure calibration. |
|
| Validates a MoveTo command and sets overall panel targets. |
|
| Stops the active closure operation and completes the stop action. |
|
| Validates a SetTarget command and sets the selected panel target. |
|
| Validates a Step command and sets the selected panel step target. |
|
| Finalizes a completed calibrate, stop, move, or unlatch action. |
|
| Advances closure panels toward their target positions. |
|
| Updates closure and panel states for an unlatch action. |
|
| Calculates the next position between a panel's current and target positions. |
|
| Advances one panel toward a SetTarget position. |
|
| Updates one panel for an unlatch action. |
|
| Applies a Step action to one panel. |