Package-level declarations

Types

Link copied to clipboard
interface Connectivity

Provides access to the current connectivity status of the device either synchronously through calling isConnected or by observing through connectionStatus.

Link copied to clipboard

A helper class to keep track of a cooldown period based on errors occurring.

Link copied to clipboard
data class HttpMethod(val value: String)

Simple data class to hold the Http Method name of an Http request.

Link copied to clipboard

Represents the data for an HTTP request

Link copied to clipboard
data class HttpResponse(val url: URL, val statusCode: Int, val message: String, val headers: Map<String, List<String>>, val body: ByteArray? = null)

Represents the response data for an HTTP response

Link copied to clipboard
typealias NetworkCallback<T> = Callback<T>
Link copied to clipboard
interface NetworkClient

Utility class for making asynchronous Http requests.

Link copied to clipboard

Return type to signify that an error has occurred. The type returned indicates what type of error has occurred, and the isRetryable implementation will indicate if it is safe to retry the request.

Link copied to clipboard
interface NetworkHelper

Utility interface for making basic async network requests. For more complex requirements, use the NetworkClient instead.

Link copied to clipboard
sealed class NetworkResult

Describes the available results of a network request.

Link copied to clipboard
class NetworkUtilities(connectivity: Connectivity, val networkClient: NetworkClient, val networkHelper: NetworkHelper, logger: Logger) : Connectivity

Utility class to group networking utilities onto a single object for a given com.tealium.prism.core.Tealium instance

Link copied to clipboard

Interface for intercepting network responses and deciding whether a request is retried.

Link copied to clipboard

Utility object for getting the built-in RequestInterceptors, to add to a client derived with NetworkClient.newClient.

Link copied to clipboard

Utility class to automatically manage reading and writing resources from a DataStore as well as providing etag storage support.

Link copied to clipboard

A utility class to repeatedly fetch some resource

Link copied to clipboard

What an interceptor does when a retryable failure has a Retry-After header longer than the interceptor's maximum delay.

Link copied to clipboard
sealed class RetryPolicy

The RetryPolicy returned by a RequestInterceptor to decide if and when a failed request is retried.