MCPcopy Create free account
hub / github.com/crosspoint-reader/crosspoint-reader / isReaderActivity

Method isReaderActivity

src/activities/ActivityManager.cpp:251–255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

249bool ActivityManager::preventAutoSleep() const { return currentActivity && currentActivity->preventAutoSleep(); }
250
251bool ActivityManager::isReaderActivity() const {
252 return std::any_of(stackActivities.begin(), stackActivities.end(),
253 [](const auto& activity) { return activity->isReaderActivity(); }) ||
254 (currentActivity && currentActivity->isReaderActivity());
255}
256
257bool ActivityManager::skipLoopDelay() const { return currentActivity && currentActivity->skipLoopDelay(); }
258

Callers

nothing calls this directly

Calls 2

endMethod · 0.80
beginMethod · 0.45

Tested by

no test coverage detected