Ion
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ion::port::android::ScopedJObject Class Reference

Stack-allocate this to clean up a jobject at end of scope. More...

#include "jniutil.h"

Public Member Functions

 ScopedJObject (JNIEnv *env, jobject *obj)
 
 ~ScopedJObject ()
 

Detailed Description

Stack-allocate this to clean up a jobject at end of scope.

Does not own the jobject, may not work if copied or moved.

Definition at line 83 of file jniutil.h.

Constructor & Destructor Documentation

ion::port::android::ScopedJObject::ScopedJObject ( JNIEnv *  env,
jobject *  obj 
)
inlineexplicit

Definition at line 85 of file jniutil.h.

ion::port::android::ScopedJObject::~ScopedJObject ( )
inline

Definition at line 86 of file jniutil.h.


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