Ersa Wearable Platform
Embedded smartwatch firmware and application framework
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
TestAppA Class Reference
Inheritance diagram for TestAppA:
Inheritance graph
[legend]
Collaboration diagram for TestAppA:
Collaboration graph
[legend]

Public Member Functions

const char * getId () const override
 
const char * getTitle () const override
 
void onCreate () override
 
void onStart () override
 
void onResume () override
 
void onPause () override
 
void onStop () override
 
void onEvent (const events::Event &event) override
 
void render (hal::IDisplay &display, bool full) override
 
- Public Member Functions inherited from ersa::app::Application
virtual ~Application ()=default
 
virtual void onDestroy ()
 
virtual void onEnter ()
 
virtual void onExit ()
 
virtual void render (ui::Canvas &canvas)
 
virtual Rect getPartialBounds () const
 
virtual void tick ()
 
- Public Member Functions inherited from ersa::events::IEventListener
virtual ~IEventListener ()=default
 

Public Attributes

int createCount {0}
 
int startCount {0}
 
int resumeCount {0}
 
int pauseCount {0}
 
int stopCount {0}
 
int eventCount {0}
 
int renderCount {0}
 

Member Function Documentation

◆ getId()

const char * TestAppA::getId ( ) const
inlineoverridevirtual

Return a stable, unique, null-terminated navigation key.

Implements ersa::app::Application.

◆ getTitle()

const char * TestAppA::getTitle ( ) const
inlineoverridevirtual

Return the user-facing name shown by the app drawer.

Implements ersa::app::Application.

◆ onCreate()

void TestAppA::onCreate ( )
inlineoverridevirtual

Called once before this app is first shown.

Establish durable model state here. Do not assume the display is active or block the UI task; the base implementation is empty so simple apps have no setup boilerplate.

Reimplemented from ersa::app::Application.

◆ onEvent()

void TestAppA::onEvent ( const events::Event &  event)
inlineoverridevirtual

Receive a normalized system or input event while this app is active. Override this to translate button, clock, battery, and companion events into app state changes. Payloads are copied values, so app logic does not need to depend on the device driver that produced the event. The base implementation intentionally ignores events for static screens.

Reimplemented from ersa::app::Application.

◆ onPause()

void TestAppA::onPause ( )
inlineoverridevirtual

Called before another screen temporarily covers this app. Stop animations and polling, and release temporary wake/performance leases. The manager retains the app instance, so this is not destruction.

Reimplemented from ersa::app::Application.

◆ onResume()

void TestAppA::onResume ( )
inlineoverridevirtual

Called after onPause() when this app is foregrounded again. Revalidate transient state and resume paused work; durable model state normally remains intact across this temporary transition.

Reimplemented from ersa::app::Application.

◆ onStart()

void TestAppA::onStart ( )
inlineoverridevirtual

Called when the manager selects this app as the foreground screen. Start foreground-only work, such as app-specific event subscriptions or refresh requests. Pair subscriptions with pause/stop cleanup so hidden screens do not process events unnecessarily.

Reimplemented from ersa::app::Application.

◆ onStop()

void TestAppA::onStop ( )
inlineoverridevirtual

Called when navigation leaves this app. Release foreground-only resources and callbacks. Use onPause() for a temporary cover and onDestroy() only when the manager permanently removes the object.

Reimplemented from ersa::app::Application.

◆ render()

void TestAppA::render ( hal::IDisplay &  display,
bool  fullRefresh 
)
inlineoverridevirtual

Render through the display HAL. fullRefresh requests a panel-wide update when the hardware supports a distinct full-refresh waveform. The UI calls this only when content is dirty. Draw into the framebuffer; the display manager owns physical refresh timing and panel power so app code stays independent of e-paper driver APIs.

Reimplemented from ersa::app::Application.

Member Data Documentation

◆ createCount

int TestAppA::createCount {0}

◆ eventCount

int TestAppA::eventCount {0}

◆ pauseCount

int TestAppA::pauseCount {0}

◆ renderCount

int TestAppA::renderCount {0}

◆ resumeCount

int TestAppA::resumeCount {0}

◆ startCount

int TestAppA::startCount {0}

◆ stopCount

int TestAppA::stopCount {0}

The documentation for this class was generated from the following file: