Reading the documentation at https://developer.android.com/training/system-ui/immersive.html I can't seem to find any information on how to set full screen immersive mode in a Native Activity NDK app (without using JNI) as it seems full screen immersive mode can only be toggled from Java.
As it cannot be set from the manifest (Set Android immersive full screen mode in manifest), is there any way to request it via EGL?
Seems the only way to enable full screen immersive mode is to call setSystemUiVisibility via JNI ahead of requesting a surface via EGL?
Answering my own question, you can set immersive mode via C++/JNI without add java to your project. Here is my snippet, large parts are copied from somewhere on the internet.