Flutter Engine
jni_util.h File Reference
#include <jni.h>
#include <vector>
#include "flutter/fml/macros.h"
#include "flutter/fml/platform/android/scoped_java_ref.h"

Go to the source code of this file.

Namespaces

 fml
 
 fml::jni
 

Functions

void fml::jni::InitJavaVM (JavaVM *vm)
 
JNIEnv * fml::jni::AttachCurrentThread ()
 
void fml::jni::DetachFromVM ()
 
std::string fml::jni::JavaStringToString (JNIEnv *env, jstring str)
 
ScopedJavaLocalRef< jstring > fml::jni::StringToJavaString (JNIEnv *env, const std::string &u8_string)
 
std::vector< std::string > fml::jni::StringArrayToVector (JNIEnv *env, jobjectArray array)
 
ScopedJavaLocalRef< jobjectArray > fml::jni::VectorToStringArray (JNIEnv *env, const std::vector< std::string > &vector)
 
bool fml::jni::HasException (JNIEnv *env)
 
bool fml::jni::ClearException (JNIEnv *env)
 
std::string fml::jni::GetJavaExceptionInfo (JNIEnv *env, jthrowable java_throwable)