IosAppUpdateManager

class IosAppUpdateManager(bundleId: String? = NSBundle.mainBundle.bundleIdentifier, currentVersion: String = (NSBundle.mainBundle.objectForInfoDictionaryKey("CFBundleShortVersionString") as? String) ?: "0", httpClient: HttpClient = HttpClient(Darwin)) : AppUpdateManager

iOS in-app update via the public iTunes Lookup API (no backend, parity with the Android Play-Core path). Compares the App Store version to the running CFBundleShortVersionString. startUpdate opens the App Store page. Any network/parse failure → UpdateAvailability.NotAvailable, never a crash.

Constructors

Link copied to clipboard
constructor(bundleId: String? = NSBundle.mainBundle.bundleIdentifier, currentVersion: String = (NSBundle.mainBundle.objectForInfoDictionaryKey("CFBundleShortVersionString") as? String) ?: "0", httpClient: HttpClient = HttpClient(Darwin))

Functions

Link copied to clipboard
open suspend override fun checkForUpdate(config: UpdateConfig): UpdateAvailability
Link copied to clipboard
open suspend override fun completeFlexibleUpdate()
Link copied to clipboard
open override fun startUpdate(mode: UpdateMode)