JUCE  v5.4.1-191-g0ab5e696f
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 LocalRef< jobject > &o)
 
 GlobalRef (const LocalRef< jobject > &o, JNIEnv *env)
 
 GlobalRef (const GlobalRef &other)
 
 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 = 0
 

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

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

Referenced by clear(), operator=(), and ~GlobalRef().

◆ clear() [2/2]

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

References obj.

◆ get()

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

References obj.

◆ 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

Member Data Documentation

◆ obj

jobject juce::GlobalRef::obj = 0
private

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