MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / visibilitychange_callback

Function visibilitychange_callback

test/browser/test_html5_core.c:170–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168}
169
170bool visibilitychange_callback(int eventType, const EmscriptenVisibilityChangeEvent *e, void *userData) {
171 printf("%s, hidden: %d, visibilityState: %d\n", emscripten_event_type_to_string(eventType), e->hidden, e->visibilityState);
172
173 return 0;
174}
175
176bool touch_callback(int eventType, const EmscriptenTouchEvent *e, void *userData) {
177 printf("%s, numTouches: %d timestamp: %lf %s%s%s%s\n",

Callers 1

mainFunction · 0.85

Calls 2

printfFunction · 0.85

Tested by

no test coverage detected