Package-level declarations

Properties

Link copied to clipboard
const val VERSION: String

Functions

Link copied to clipboard
@ApolloExperimental
fun <D : Operation.Data> ApolloCall<D>.toState(context: CoroutineContext = EmptyCoroutineContext): State<ApolloResponse<D>?>

Returns a State that produces ApolloResponses for this ApolloCall. Execution happens at first call. The initial value is null, which can be used to mean 'waiting for the first value'. ApolloResponse.exception can be used to check for ApolloExceptions thrown during execution. Example:

Link copied to clipboard
@ApolloExperimental
fun <D : Query.Data> ApolloCall<D>.watchAsState(context: CoroutineContext = EmptyCoroutineContext): State<ApolloResponse<D>?>

Returns a State that produces ApolloResponses by watching this ApolloCall. The initial value is null, which can be used to mean 'waiting for the first value'. ApolloResponse.exception can be used to check for ApolloExceptions thrown during execution. Example: