IosSettingsPlatformActions

iOS bridge used by Settings for links, settings navigation, and storage usage summaries.

Author

Dmitriy Moroz

Parameters

fileSystem

Shared iOS storage helper that knows the app cache and local model paths.

Constructors

Link copied to clipboard
constructor(fileSystem: IosStorageUsageFileSystem)

Types

Link copied to clipboard
private object Companion

Static iOS support email URL used by Settings report action.

Properties

Link copied to clipboard

Localization key for the warning shown under the background generation toggle.

Link copied to clipboard
Link copied to clipboard

True when saving generated images through MediaStore still needs a runtime storage permission.

Link copied to clipboard
open override val supportsBackgroundGeneration: Boolean = true

True when this target can continue generation work after the app leaves foreground.

Functions

Link copied to clipboard
open suspend override fun clearAppCache()

Clears app cache files after a caller has shown destructive confirmation.

Link copied to clipboard
open suspend override fun getAllDownloadedModelsBytes(): Long

Returns total bytes occupied by every downloaded model directory visible to the platform.

Link copied to clipboard
open suspend override fun getAppCacheBytes(): Long

Returns current app cache byte size for the Settings summary row.

Link copied to clipboard
open suspend override fun getDownloadedModelsBytes(modelIds: List<String>): Long

Returns total bytes occupied by downloaded model directories for modelIds.

Link copied to clipboard
open override fun mapStorageBytesForUi(bytes: Long): Long

Converts a raw storage counter into a user-visible amount.

Link copied to clipboard
open override fun openAppSettings()

Opens this app's platform settings page.

Link copied to clipboard
open override fun openUrl(url: String)

Opens an external URL through the platform.

Link copied to clipboard
open suspend override fun requestNotificationPermission(): Boolean

Requests notification permission when the platform requires it for background generation.

Link copied to clipboard
open suspend override fun requestStoragePermission(): Boolean

Requests storage/media permission when the platform requires it for gallery saves.

Link copied to clipboard
open override fun shareLogFile()

Opens the problem-report channel with diagnostic context prepared by the platform.

Link copied to clipboard
open override fun showDeveloperModeUnlocked()

Shows platform feedback after developer mode is unlocked.