Package-level declarations

Types

Link copied to clipboard
interface NetworkMonitor : Closeable

Monitors the network state. A NetworkMonitor is used to retry requests when network is available.

Link copied to clipboard

Functions

Link copied to clipboard
fun NetworkMonitor(context: Context): <Error class: unknown class>

Returns a new NetworkMonitor for the given Context

fun NetworkMonitor(): <Error class: unknown class>
Link copied to clipboard
fun <Error class: unknown class>.okHttpCallFactory(callFactory: <Error class: unknown class>): <Error class: unknown class>

Configures the ApolloClient to use the callFactory for network requests.

fun <Error class: unknown class>.okHttpCallFactory(callFactory: () -> <Error class: unknown class>): <Error class: unknown class>

Configures the ApolloClient to use the lazily initialized callFactory for network requests.

fun <Error class: unknown class>.okHttpCallFactory(okHttpCallFactory: <Error class: unknown class>): <Error class: unknown class>

Configures the HttpNetworkTransport to use the okHttpCallFactory for network requests.

Link copied to clipboard
fun <Error class: unknown class>.okHttpClient(okHttpClient: <Error class: unknown class>): <Error class: unknown class>

Configures the ApolloClient to use the OkHttpClient for network requests. The OkHttpClient will be used for both HTTP and WebSocket requests.

fun <Error class: unknown class>.okHttpClient(okHttpClient: <Error class: unknown class>): <Error class: unknown class>

Configures the HttpNetworkTransport to use the DefaultHttpEngine for network requests.

fun <Error class: unknown class>.okHttpClient(okHttpClient: <Error class: unknown class>): <Error class: unknown class>

Configures the WebSocketNetworkTransport to use the okHttpCallFactory for network requests.

Link copied to clipboard
fun ByteArray.toNSData(): <Error class: unknown class>