AndroidSettingsPlatformActions

private class AndroidSettingsPlatformActions(val context: Context, val launchStoragePermission: (Array<String>) -> Unit, val launchNotificationPermission: (String) -> Unit, val storagePermissionResult: MutableState<CompletableDeferred<Boolean>?>, val notificationPermissionResult: MutableState<CompletableDeferred<Boolean>?>) : SettingsPlatformActions(source)

Coordinates AndroidSettingsPlatformActions behavior in the SDAI presentation layer.

Author

Dmitriy Moroz

Constructors

Link copied to clipboard
constructor(context: Context, launchStoragePermission: (Array<String>) -> Unit, launchNotificationPermission: (String) -> Unit, storagePermissionResult: MutableState<CompletableDeferred<Boolean>?>, notificationPermissionResult: MutableState<CompletableDeferred<Boolean>?>)

Properties

Link copied to clipboard
private val context: Context

Exposes the context value used by the SDAI presentation layer.

Link copied to clipboard

Exposes the launchNotificationPermission value used by the SDAI presentation layer.

Link copied to clipboard

Exposes the launchStoragePermission value used by the SDAI presentation layer.

Link copied to clipboard
private val notificationPermissionResult: MutableState<CompletableDeferred<Boolean>?>

Exposes the notificationPermissionResult value used by the SDAI presentation layer.

Link copied to clipboard

Exposes the requiresStoragePermissionForMediaStore value used by the SDAI presentation layer.

Link copied to clipboard
private val storagePermissionResult: MutableState<CompletableDeferred<Boolean>?>

Exposes the storagePermissionResult value used by the SDAI presentation layer.

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

Exposes the supportsBackgroundGeneration value used by the SDAI presentation layer.

Functions

Link copied to clipboard
open override fun openAppSettings()

Executes the openAppSettings step in the SDAI presentation layer.

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

Executes the openUrl step in the SDAI presentation layer.

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

Executes the requestNotificationPermission step in the SDAI presentation layer.

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

Executes the requestStoragePermission step in the SDAI presentation layer.

Link copied to clipboard
open override fun shareLogFile()

Performs the SDAI side effect handled by shareLogFile.

Link copied to clipboard
open override fun showDeveloperModeUnlocked()

Executes the showDeveloperModeUnlocked step in the SDAI presentation layer.