JUCE  v5.1.1-3-g1a0b28c73
JUCE API
GlobalRef Class Reference

#include <juce_android_JNIHelpers.h>

Collaboration diagram for GlobalRef:

Public Member Functions

 GlobalRef () noexcept
 
 GlobalRef (jobject o)
 
 GlobalRef (const GlobalRef &other)
 
 ~GlobalRef ()
 
void callVoidMethod (jmethodID methodID,...) const
 
void clear ()
 
jobject get () const noexcept
 
 operator jobject () const noexcept
 
GlobalRefoperator= (const GlobalRef &other)
 

Static Private Member Functions

static jobject retain (jobject obj)
 

Private Attributes

jobject obj
 

Constructor & Destructor Documentation

◆ GlobalRef() [1/3]

GlobalRef::GlobalRef ( )
inlinenoexcept

◆ GlobalRef() [2/3]

GlobalRef::GlobalRef ( jobject  o)
inlineexplicit

◆ GlobalRef() [3/3]

GlobalRef::GlobalRef ( const GlobalRef other)
inline

◆ ~GlobalRef()

GlobalRef::~GlobalRef ( )
inline

Member Function Documentation

◆ callVoidMethod()

void GlobalRef::callVoidMethod ( jmethodID  methodID,
  ... 
) const
inline

References getEnv().

Referenced by FileOutputStream::flushInternal().

◆ clear()

void GlobalRef::clear ( )
inline

References getEnv().

◆ get()

◆ operator jobject()

GlobalRef::operator jobject ( ) const
inlinenoexcept

◆ operator=()

GlobalRef& GlobalRef::operator= ( const GlobalRef other)
inline

References obj.

◆ retain()

static jobject GlobalRef::retain ( jobject  obj)
inlinestaticprivate

References getEnv().

Member Data Documentation

◆ obj

jobject GlobalRef::obj
private

Referenced by operator=().


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