MCPcopy Create free account
hub / github.com/cinder/Cinder / getCacheDirectory

Method getCacheDirectory

src/cinder/android/app/CinderNativeActivity.cpp:165–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163}
164
165cinder::fs::path CinderNativeActivity::getCacheDirectory()
166{
167 cinder::fs::path result;
168
169 auto jniEnv = JniHelper::Get()->AttachCurrentThread();
170 if( jniEnv ) {
171 jstring jstr = (jstring)jniEnv->CallObjectMethod( getInstance()->getJavaObject(), Java::getCacheDirectory );
172 const char *c_str = jniEnv->GetStringUTFChars( jstr, nullptr );
173 result = std::string( c_str );
174 jniEnv->ReleaseStringUTFChars( jstr, c_str );
175 }
176
177 return result;
178}
179
180cinder::fs::path CinderNativeActivity::getPicturesDirectory()
181{

Callers

nothing calls this directly

Calls 3

stringFunction · 0.85
AttachCurrentThreadMethod · 0.80
getJavaObjectMethod · 0.80

Tested by

no test coverage detected