Package-level declarations

Types

Link copied to clipboard
actual object AFCore

Android implementation of the AFCore SDK singleton.

actual object AFCore

iOS implementation of the AFCore SDK singleton.

actual object AFCore

watchOS implementation of the AFCore SDK singleton.

Link copied to clipboard
class AFCoreConfig(baseUrl: String, clientId: String, clientSecret: String, enableLogging: Boolean, logLevel: AFLogLevel, enableHttpLogging: Boolean, httpLogLevel: AFLogLevel, supportsManualSteps: Boolean, heartbeatEnabled: Boolean?, connectTimeoutMillis: Long, requestTimeoutMillis: Long, socketTimeoutMillis: Long, cacheEnabled: Boolean, cacheTtlMillis: Long, cacheMaxEntries: Int, maxNetworkRetries: Int, tokenRefreshLeadTimeMillis: Long, outboxMaxEntries: Int, outboxMaxAgeMillis: Long, outboxFlushIntervalMillis: Long, smartWalkingSyncIntervalMillis: Long, healthLookbackDays: Int, heartbeatForegroundThrottleMillis: Long, heartbeatBackgroundThrottleMillis: Long)

Library-stable configuration for AFCore initialization. Not a data class to preserve binary/source compatibility across releases.

Link copied to clipboard
@RequiresOptIn(level = RequiresOptIn.Level.WARNING, message = "This AFCore API is experimental and may change or be removed without notice. Do not depend on it in production code yet.")
annotation class AFCoreExperimentalApi

Marks an AFCore API as experimental — the surface is intentionally exposed to gather feedback and validate the design, but it is not ready for production use and may change in incompatible ways (or be removed entirely) in a future release without a major-version bump.

Link copied to clipboard
class AFException(val message: String? = null, val isError: Boolean? = null, val detail: String? = null, val data: String? = null, val errors: List<String?>? = null, val httpCode: Int? = null) : Exception

Represents an exception that occurs during an API call.

Link copied to clipboard

Severity threshold for SDK and HTTP logging.

Link copied to clipboard
fun interface AFLogWriter

Custom log output hook for AFCore's internal logger.

Link copied to clipboard

Observable session lifecycle states emitted by AFCore.authentication().sessionState (and the deprecated AFCore.sessionState).