ScreenManager v1.0.0
A lightweight C++ library for managing application screens, navigation, transitions and display timing.
Public Member Functions | Friends | List of all members
ScreenRouter Class Referenceabstract

Description

Abstract class that resolves screen transitions (ie moving Next, Back or to a new screen). Called by ScreenManager if requestScreen is set.

#include <ScreenRouter.h>

Public Member Functions

virtual uint8_t resolveScreen (uint8_t current, const TransitionIntent &intent)=0
 Resolve a screen transition intent's validity. Can return 0 or the the requested id (no objection), or a redirect id or the current id. More...
 

Friends

class ScreenManager
 

Member Function Documentation

◆ resolveScreen()

virtual uint8_t ScreenRouter::resolveScreen ( uint8_t  current,
const TransitionIntent intent 
)
pure virtual

Resolve a screen transition intent's validity. Can return 0 or the the requested id (no objection), or a redirect id or the current id.

Parameters
current
intent
Returns
std::string

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