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

requestRefresh

abstract fun requestRefresh()

Requests that a new refresh of the resource take place. No validation is done on the object that is retrieved.

A refresh only takes place if all relevant timeout conditions are met.


abstract fun requestRefresh(isValid: (T) -> Boolean)

Requests that a new refresh of the resource take place. The resulting object is passed to the isValid predicate to determine whether or not this should be considered a successful retrieval.

A refresh only takes place if all relevant timeout conditions are met.

Parameters

isValid

Predicate to determine the resource validity. Return true if valid, else false.

Generated by Dokka
(c) Tealium 2026