Target filter
Search Kotlin docs
  • Back
  • Tealium Prism Kotlin SDK Reference
core/com.tealium.prism.core.api.network

Package-level declarations

Types

Connectivity
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.

CooldownHelper
Link copied to clipboard
class CooldownHelper

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

DeserializedNetworkCallback
Link copied to clipboard
typealias DeserializedNetworkCallback<T> = NetworkCallback<TealiumResult<NetworkHelper.HttpValue<T>>>
HttpMethod
Link copied to clipboard
data class HttpMethod(val value: String)

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

HttpRequest
Link copied to clipboard
class HttpRequest

Represents the data for an HTTP request

HttpResponse
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

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

Utility class for making asynchronous Http requests.

NetworkException
Link copied to clipboard
sealed class NetworkException : TealiumIOException

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.

NetworkHelper
Link copied to clipboard
interface NetworkHelper

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

NetworkResult
Link copied to clipboard
sealed class NetworkResult

Describes the available results of a network request.

NetworkUtilities
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

RequestInterceptor
Link copied to clipboard
interface RequestInterceptor

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

RequestInterceptors
Link copied to clipboard
object RequestInterceptors

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

ResourceCache
Link copied to clipboard
interface ResourceCache<T : DataItemConvertible>

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

ResourceRefresher
Link copied to clipboard
interface ResourceRefresher<T : DataItemConvertible>

A utility class to repeatedly fetch some resource

RetryAfterAboveMaxDelay
Link copied to clipboard
enum RetryAfterAboveMaxDelay : Enum<RetryAfterAboveMaxDelay>

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

RetryPolicy
Link copied to clipboard
sealed class RetryPolicy

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

Generated by Dokka
(c) Tealium 2026