MCPcopy Create free account
hub / github.com/Blueforcer/awtrix3 / getNativeAppByName

Function getNativeAppByName

src/DisplayManager.cpp:1529–1554  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1527}
1528
1529std::pair<String, AppCallback> getNativeAppByName(const String &appName)
1530{
1531 if (appName == "Time")
1532 {
1533 return std::make_pair("Time", TimeApp);
1534 }
1535 else if (appName == "Date")
1536 {
1537 return std::make_pair("Date", DateApp);
1538 }
1539 else if (appName == "Temperature")
1540 {
1541 return std::make_pair("Temperature", TempApp);
1542 }
1543 else if (appName == "Humidity")
1544 {
1545 return std::make_pair("Humidity", HumApp);
1546 }
1547#ifdef ULANZI
1548 else if (appName == "Battery")
1549 {
1550 return std::make_pair("Battery", BatApp);
1551 }
1552#endif
1553 return std::make_pair("", nullptr);
1554}
1555
1556void DisplayManager_::updateAppVector(const char *json)
1557{

Callers 1

updateAppVectorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected