| 163 | } |
| 164 | |
| 165 | cinder::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 | |
| 180 | cinder::fs::path CinderNativeActivity::getPicturesDirectory() |
| 181 | { |
nothing calls this directly
no test coverage detected