Target filter
Search Kotlin docs
  • Platforms
  • Tealium Prism Kotlin
core/com.tealium.prism.core.api.network/NetworkClient/sendRequest

sendRequest

abstract fun sendRequest(request: HttpRequest, completion: Callback<NetworkResult>): Disposable

Sends an HTTP request asynchronously and returns the result to the provided completion block. The request is retried if necessary based on the provided request and the response NetworkResult.

Return

A Disposable that can be used to cancel the request.

Parameters

request

The HttpRequest object representing the request to be sent.

completion

The block to receive the result of the network request. This will be called on Tealium's background thread.

Generated by Dokka
(c) Tealium 2026