Flutter Engine
The Flutter Engine
Functions
library_loader.cc File Reference
#include "flutter/fml/platform/android/jni_util.h"
#include "flutter/shell/platform/android/android_image_generator.h"
#include "flutter/shell/platform/android/flutter_main.h"
#include "flutter/shell/platform/android/platform_view_android.h"
#include "flutter/shell/platform/android/vsync_waiter_android.h"

Go to the source code of this file.

Functions

JNIEXPORT jint JNI_OnLoad (JavaVM *vm, void *reserved)
 

Function Documentation

◆ JNI_OnLoad()

JNIEXPORT jint JNI_OnLoad ( JavaVM *  vm,
void *  reserved 
)

Definition at line 12 of file library_loader.cc.

12 {
13 // Initialize the Java VM.
15
17 bool result = false;
18
19 // Register FlutterMain.
22
23 // Register PlatformView
26
27 // Register VSyncWaiter.
30
31 // Register AndroidImageDecoder.
34
35 return JNI_VERSION_1_4;
36}
static bool Register(JNIEnv *env)
static bool Register(JNIEnv *env)
GAsyncResult * result
#define FML_CHECK(condition)
Definition: logging.h:85
Definition: __init__.py:1
JNIEnv * AttachCurrentThread()
Definition: jni_util.cc:34
void InitJavaVM(JavaVM *vm)
Definition: jni_util.cc:29