Aller au contenu

ConfigApi

Ce contenu n’est pas encore disponible dans votre langue.

class ConfigApi

Config resolution. Obtained from FrakClient.config.

Every suspending member has a *Async twin returning a CompletableFuture for Java callers; a FrakError surfaces there wrapped in a CompletionException.

NameSummary
resolvesuspend fun resolve(): FrakResolvedConfig
Stale-while-revalidate; only call that reliably 404s on a bad merchant id.
suspend fun resolve(forceRefresh: Boolean): FrakResolvedConfig
resolveAsyncfun resolveAsync(): CompletableFuture<FrakResolvedConfig>
resolve for Java. Completes on the main thread; blocking it from there throws.
fun resolveAsync(forceRefresh: Boolean): CompletableFuture<FrakResolvedConfig>
resolve for Java.