public interface ApolloQueryWatcher<T> extends Cancelable
| Modifier and Type | Method and Description |
|---|---|
ApolloQueryWatcher<T> |
enqueueAndWatch(ApolloCall.Callback<T> callback) |
com.apollographql.apollo.api.Operation |
operation()
Returns GraphQl watched operation.
|
void |
refetch()
Re-fetches watched GraphQl query.
|
ApolloQueryWatcher<T> |
refetchCacheControl(CacheControl cacheControl) |
cancel, isCanceledApolloQueryWatcher<T> enqueueAndWatch(@Nullable ApolloCall.Callback<T> callback)
@Nonnull ApolloQueryWatcher<T> refetchCacheControl(@Nonnull CacheControl cacheControl)
cacheControl - The CacheControl to use when the call is refetched due to a field changing in the
cache.@Nonnull com.apollographql.apollo.api.Operation operation()
Operationvoid refetch()