Skip to content

ParseQueryAdapter #126

Open
Open
@amebrahimi

Description

@amebrahimi

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;
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions