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

Method ShowUI

teapots/classic-teapot/src/main/cpp/TeapotNativeActivity.cpp:356–367  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

354}
355
356void Engine::ShowUI() {
357 JNIEnv* jni;
358 app_->activity->vm->AttachCurrentThread(&jni, NULL);
359
360 // Default class retrieval
361 jclass clazz = jni->GetObjectClass(app_->activity->clazz);
362 jmethodID methodID = jni->GetMethodID(clazz, "showUI", "()V");
363 jni->CallVoidMethod(app_->activity->clazz, methodID);
364
365 app_->activity->vm->DetachCurrentThread();
366 return;
367}
368
369void Engine::UpdateFPS(float fFPS) {
370 JNIEnv* jni;

Callers

nothing calls this directly

Calls 3

AttachCurrentThreadMethod · 0.80
CallVoidMethodMethod · 0.80
DetachCurrentThreadMethod · 0.80

Tested by

no test coverage detected