-
-
Notifications
You must be signed in to change notification settings - Fork 322
Open
Labels
Description
Hi, i'm new to coding and i'm trying to build an app that contains a parse adapter , but there is no method such as isLocalDatastoreEnabled() in Parse library that you used in you're code can you please help me to understand the code when it uses isLocalDatastoreEnabled().
if (Parse.isLocalDatastoreEnabled() ||
(query.getCachePolicy() != CachePolicy.CACHE_THEN_NETWORK) ||
(query.getCachePolicy() == CachePolicy.CACHE_THEN_NETWORK && !firstCallBack.get())) {
runningQueries.remove(query);
}
if ((!Parse.isLocalDatastoreEnabled() &&
query.getCachePolicy() == CachePolicy.CACHE_ONLY) &&
(e != null) && e.getCode() == ParseException.CACHE_MISS) {
// no-op on cache miss
return;
}