MCPcopy Create free account
hub / github.com/android/ndk-samples / Pause

Method Pause

native-activity/app/src/main/cpp/main.cpp:129–134  ·  view source on GitHub ↗

Pauses ticking the application. When paused, sensor and input events will still be processed, but the update and render parts of the loop will not run.

Source from the content-addressed store, hash-verified

127 /// When paused, sensor and input events will still be processed, but the
128 /// update and render parts of the loop will not run.
129 void Pause() {
130 // This is called whenever something interrupts the activity and moves it
131 // into the background. In multiwindow mode the app might still be visible,
132 // but it is no longer the focused app and should pause accordingly,
133 running_ = false;
134 }
135
136 private:
137 android_app* app_;

Callers 1

engine_handle_cmdFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected