std.android.native_activity
ANativeActivity-Struktur und Lifecycle-Callbacks für vollständig native Android-Anwendungen. Der Einstiegspunkt ist ANativeActivity_onCreate, das vom Android-System beim Start aufgerufen wird.
→ std.android · std.android.app_glue · std.android.looper
Diese Unit stellt derzeit keine aufrufbaren Funktionen bereit.
Die Android-API liegt inlibandroid.sobzw.libGLESv2.so. Für den Aufruf wärenDT_NEEDED-Einträge und PLT-Linking nötig, die der Compiler noch nicht erzeugt. Die Quelldatei hält nur Konstanten und Strukturbeschreibungen vor.
Aus dem Kopf der Quelldatei:
Lyx Android Stdlib - NativeActivity WP-AND-07 The ANativeActivity struct + callback table that the Android system hands to a native entry point. A real Lyx NativeActivity app would implement ANativeActivity_onCreate as an @export-ed Lyx function; the system calls it once per activity instance and the function is expected to fill in the 15 ANativeActivityCallbacks slots and
Konstanten
| Name | Typ | Wert |
|---|---|---|
OFF_ANA_CALLBACKS | int64 | 0 |
OFF_ANA_VM | int64 | 8 |
OFF_ANA_ENV | int64 | 16 |
OFF_ANA_CLAZZ | int64 | 24 |
OFF_ANA_INTERNAL_DATAPATH | int64 | 32 |
OFF_ANA_EXTERNAL_DATAPATH | int64 | 40 |
OFF_ANA_SDK_VERSION | int64 | 48 |
OFF_ANA_INSTANCE | int64 | 56 |
OFF_ANA_ASSET_MANAGER | int64 | 64 |
OFF_ANA_OBB_PATH | int64 | 72 |
ANATIVEACTIVITY_SIZE | int64 | 80 |
ANA_CB_onStart | int64 | 0 |
ANA_CB_onResume | int64 | 1 |
ANA_CB_onSaveInstanceState | int64 | 2 |
ANA_CB_onPause | int64 | 3 |
ANA_CB_onStop | int64 | 4 |
ANA_CB_onDestroy | int64 | 5 |
ANA_CB_onWindowFocusChanged | int64 | 6 |
ANA_CB_onNativeWindowCreated | int64 | 7 |
ANA_CB_onNativeWindowResized | int64 | 8 |
ANA_CB_onNativeWindowRedrawNeeded | int64 | 9 |
ANA_CB_onNativeWindowDestroyed | int64 | 10 |
ANA_CB_onInputQueueCreated | int64 | 11 |
ANA_CB_onInputQueueDestroyed | int64 | 12 |
ANA_CB_onContentRectChanged | int64 | 13 |
ANA_CB_onConfigurationChanged | int64 | 14 |
ANA_CB_onLowMemory | int64 | 15 |
ANATIVEACTIVITYCALLBACKS_COUNT | int64 | 16 |
ANATIVEACTIVITYCALLBACKS_SIZE | int64 | 128 |
Aus std/android/native_activity.lyx erzeugt (Stand 2026-08-02, lyxc 1.0.21A). Die zuvor hier gelisteten Funktionen existieren in der Unit nicht.
