JUCE  v6.1.6 (6.0.8-1114)
JUCE API
Looking for a senior C++ dev?
I'm looking for work. Hire me!
juce::GlobalRef Class Reference

#include <juce_android_JNIHelpers.h>

Collaboration diagram for juce::GlobalRef:

Public Member Functions

 GlobalRef () noexcept
 
 GlobalRef (const GlobalRef &other)
 
 GlobalRef (const LocalRef< jobject > &o)
 
 GlobalRef (const LocalRef< jobject > &o, JNIEnv *env)
 
 GlobalRef (GlobalRef &&other) noexcept
 
 ~GlobalRef ()
 
void callVoidMethod (jmethodID methodID,...) const
 
void clear ()
 
void clear (JNIEnv *env)
 
jobject get () const noexcept
 
 operator jobject () const noexcept
 
GlobalRefoperator= (const GlobalRef &other)
 
GlobalRefoperator= (GlobalRef &&other)
 

Static Private Member Functions

static jobject retain (jobject obj, JNIEnv *env)
 

Private Attributes

jobject obj = nullptr
 

Constructor & Destructor Documentation

◆ GlobalRef() [1/5]

juce::GlobalRef::GlobalRef ( )
inlinenoexcept

◆ GlobalRef() [2/5]

juce::GlobalRef::GlobalRef ( const LocalRef< jobject > &  o)
inlineexplicit

◆ GlobalRef() [3/5]

juce::GlobalRef::GlobalRef ( const LocalRef< jobject > &  o,
JNIEnv *  env 
)
inlineexplicit

◆ GlobalRef() [4/5]

juce::GlobalRef::GlobalRef ( const GlobalRef other)
inline

◆ GlobalRef() [5/5]

juce::GlobalRef::GlobalRef ( GlobalRef &&  other)
inlinenoexcept

References obj.

◆ ~GlobalRef()

juce::GlobalRef::~GlobalRef ( )
inline

References clear().

Member Function Documentation

◆ callVoidMethod()

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

References juce::getEnv(), and obj.

◆ clear() [1/2]

void juce::GlobalRef::clear ( )
inline

◆ clear() [2/2]

void juce::GlobalRef::clear ( JNIEnv *  env)
inline

References obj.

◆ get()

◆ operator jobject()

juce::GlobalRef::operator jobject ( ) const
inlinenoexcept

References obj.

◆ operator=() [1/2]

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

References clear(), juce::getEnv(), obj, and retain().

◆ operator=() [2/2]

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

References clear(), and obj.

◆ retain()

static jobject juce::GlobalRef::retain ( jobject  obj,
JNIEnv *  env 
)
inlinestaticprivate

References obj.

Referenced by operator=().

Member Data Documentation

◆ obj

jobject juce::GlobalRef::obj = nullptr
private

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