Changeset View
Changeset View
Standalone View
Standalone View
native/android/app/src/cpp/CommSecureStore.cpp
Show All 29 Lines | |||||
void CommSecureStore::set(const std::string key, const std::string value) | void CommSecureStore::set(const std::string key, const std::string value) | ||||
const { | const { | ||||
NativeAndroidAccessProvider::runTask( | NativeAndroidAccessProvider::runTask( | ||||
[=]() { CommSecureStoreJavaClass::set(key, value); }); | [=]() { CommSecureStoreJavaClass::set(key, value); }); | ||||
} | } | ||||
folly::Optional<std::string> CommSecureStore::get(const std::string key) const { | folly::Optional<std::string> CommSecureStore::get(const std::string key) const { | ||||
return CommSecureStoreJavaClass::get(key); | folly::Optional<std::string> value; | ||||
NativeAndroidAccessProvider::runTask( | |||||
[=, &value]() { value = CommSecureStoreJavaClass::get(key); }); | |||||
return value; | |||||
} | } | ||||
} // namespace comm | } // namespace comm |