Package-level declarations
Types
Link copied to clipboard
Monitors the network state. A NetworkMonitor is used to retry requests when network is available.
Link copied to clipboard
interface NetworkTransport
Functions
Link copied to clipboard
Returns a new NetworkMonitor for the given Context
Link copied to clipboard
fun ApolloClient.Builder.okHttpCallFactory(callFactory: <Error class: unknown class>): ApolloClient.Builder
Configures the ApolloClient to use the callFactory for network requests.
fun ApolloClient.Builder.okHttpCallFactory(callFactory: () -> <Error class: unknown class>): ApolloClient.Builder
Configures the ApolloClient to use the lazily initialized callFactory for network requests.
fun HttpNetworkTransport.Builder.okHttpCallFactory(okHttpCallFactory: <Error class: unknown class>): HttpNetworkTransport.Builder
Configures the HttpNetworkTransport to use the okHttpCallFactory for network requests.
Link copied to clipboard
fun ApolloClient.Builder.okHttpClient(okHttpClient: <Error class: unknown class>): ApolloClient.Builder
Configures the ApolloClient to use the OkHttpClient for network requests. The OkHttpClient will be used for both HTTP and WebSocket requests.
fun HttpNetworkTransport.Builder.okHttpClient(okHttpClient: <Error class: unknown class>): HttpNetworkTransport.Builder
Configures the HttpNetworkTransport to use the DefaultHttpEngine for network requests.
fun WebSocketNetworkTransport.Builder.okHttpClient(okHttpClient: <Error class: unknown class>): WebSocketNetworkTransport.Builder
Configures the WebSocketNetworkTransport to use the okHttpCallFactory for network requests.