OtaResourcesConfig

data class OtaResourcesConfig(val checkForUpdates: Boolean = true, val strict: Boolean = false, val serviceUrl: String = defaultOtaDownloadUrl, val localFolder: String = defaultOtaResourcesLocalFolder, val requestTimeout: RequestTimeout = RequestTimeout.DEFAULT) : Parcelable

Configuration for over-the-air (OTA) resource downloads and local storage.

Constructors

Link copied to clipboard
constructor(checkForUpdates: Boolean = true, strict: Boolean = false, serviceUrl: String = defaultOtaDownloadUrl, localFolder: String = defaultOtaResourcesLocalFolder, requestTimeout: RequestTimeout = RequestTimeout.DEFAULT)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Whether the SDK checks for and downloads updated OTA resources on init. When false, no OTA update check is performed and cached/bundled resources are used as-is.

Link copied to clipboard

Folder name where updated OTA resources are downloaded and cached when checkForUpdates is true.

Link copied to clipboard

Timeout settings for OTA resource downloads.

Link copied to clipboard

URL of the OTA versions/download service used when checkForUpdates is true.

Link copied to clipboard

Controls how the SDK handles a failed OTA update download during initialization. Only applied when checkForUpdates is set to true. When strict is set to true, SDK initialization throws if the OTA update fails. When strict is set to false, initialization continues and the SDK falls back to the cached/bundled resources.

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)