Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
fml::jni::ScopedJavaLocalFrame Class Reference

#include <scoped_java_ref.h>

Public Member Functions

 ScopedJavaLocalFrame (JNIEnv *env)
 
 ScopedJavaLocalFrame (JNIEnv *env, int capacity)
 
 ~ScopedJavaLocalFrame ()
 

Detailed Description

Definition at line 20 of file scoped_java_ref.h.

Constructor & Destructor Documentation

◆ ScopedJavaLocalFrame() [1/2]

fml::jni::ScopedJavaLocalFrame::ScopedJavaLocalFrame ( JNIEnv *  env)
explicit

Definition at line 15 of file scoped_java_ref.cc.

15 : env_(env) {
16 [[maybe_unused]] int failed =
17 env_->PushLocalFrame(kDefaultLocalFrameCapacity);
18 FML_DCHECK(!failed);
19}
#define FML_DCHECK(condition)
Definition: logging.h:103
Definition: __init__.py:1
static const int kDefaultLocalFrameCapacity

◆ ScopedJavaLocalFrame() [2/2]

fml::jni::ScopedJavaLocalFrame::ScopedJavaLocalFrame ( JNIEnv *  env,
int  capacity 
)

Definition at line 21 of file scoped_java_ref.cc.

22 : env_(env) {
23 [[maybe_unused]] int failed = env_->PushLocalFrame(capacity);
24 FML_DCHECK(!failed);
25}

◆ ~ScopedJavaLocalFrame()

fml::jni::ScopedJavaLocalFrame::~ScopedJavaLocalFrame ( )

Definition at line 27 of file scoped_java_ref.cc.

27 {
28 env_->PopLocalFrame(NULL);
29}

The documentation for this class was generated from the following files: